On 06/15/2010 01:32 PM, Thomas Waldmann wrote: > Moin, > > >> I used the old Gallery macro with Moin 1.5.3. Now i updated to Moin >> 1.9.2. >> >> The Gallery.py macro does not work anymore. >> > Maybe check if there is an updated version on MacroMarket (or an > alternative). Gallery2 or Arnica comes to my mind (but I personally > don't use that stuff). > > >> I tried to find the error, and the thumbnails are shown when i >> uncomment the following section. In this section the values from >> macro.forms.item() are are written to a helper structure formvals. >> > request is available as macro.request. > > For accessing the URL args (query string), use request.args. > > For accessing POST form data, use request.form. > > If you want both mixed because you don't care, use request.values. > > All these are werkzeug MultiDicts and if you just want to get the first > value for some key, you can use e.g. request.values.get("somekey", > "defaultvalue"). No need for [0] or ["defaultvalue"]. > > These changes were due to wsgi/werkzeug refactoring, you can also just > have a look into the macros we have in 1.9.x to see how they work now. > > Cheers, > > Thomas > > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Moin-user mailing list > Moin-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > > Thanks for you help,
I have Arnica running now. I think there should be some Commend in the old Galleries about this. I can do it, but one of the programmers may not like it(There is sth. more up to date). I would not have found Arnica without you. Greetings, Christoph ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user