<body bgcolor="#ffffff" background="https://img.web.de/v/p.gif" class="bgRepeatYes" style="background-repeat: repeat; ; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><div style="min-height: 200px; background-image: url(https://img.web.de/v/p.gif); background-repeat: repeat; background-color: #ffffff; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">Hello,<br /><br />I used the old Gallery macro with Moin 1.5.3. Now i updated to Moin 1.9.2. <br /><br />The Gallery.py macro does not work anymore.<br /><br />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.<br /><br /></span></span></span></span></span># Process any form items into a dictionary (values become unique)                                                 <br />#    for item in macro.form.items():                                                                                  <br />#       if not formvals.has_key(item[0]):                                                                             <br />            # Here is where we clean the untrusted web input                                                          <br />            # (sometimes we get foreign keys from moinmoin when the page is edited)                                   <br />#           try:                                                                                                      <br />#               formvals[item[0]]=string.translate(item[1][0],transtable)                                             <br />#           except AttributeError:                                                                                    <br />#                pass                                                                                                 <br /><br />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?<br /><br />How do i fix this? I will commit the changes.<br /><br />Greetings,<br />Christoph</div>  <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.web.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style="font-family:verdana; font-size:12px; line-height:17px;">WEB.DE DSL ab 19,99 Euro/Monat. Bis zu 150,- Euro Startguthaben und   <br>50,- Euro Geldprämie inklusive! https://freundschaftswerbung.web.de</td></tr></table>
</body>