Hello,

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.

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. This means formvals is empty and the if you click on a tumbnail the image is not shown in a larger size.

# Process any form items into a dictionary (values become unique)                                                 
#    for item in macro.form.items():                                                                                  
#       if not formvals.has_key(item[0]):                                                                             
            # Here is where we clean the untrusted web input                                                          
            # (sometimes we get foreign keys from moinmoin when the page is edited)                                   
#           try:                                                                                                      
#               formvals[item[0]]=string.translate(item[1][0],transtable)                                             
#           except AttributeError:                                                                                    
#                pass                                                                                                 

In the Documentation for 1.9.2 i read about macros. The interface seems to be completely different from the old Gallery.py. Is this correct?

How do i fix this? I will commit the changes.

Greetings,
Christoph
  

WEB.DE DSL ab 19,99 Euro/Monat. Bis zu 150,- Euro Startguthaben und   
50,- Euro Geldprämie inklusive! https://freundschaftswerbung.web.de
------------------------------------------------------------------------------
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

Reply via email to