[Zope] growing webpage

Ausum Studio ausum_studio@hotmail.com
Wed, 27 Nov 2002 10:20:45 -0500


Looks like dtml-in is not your problem.
Create a new python script within the same folder, with the following lines:

list = context.functionCall('spam')
for dict in list:
    print dict
return printed

...then call this script from its url. You should see the dictionaires one
below another. If after reloading the page the number of dictionaires is
altered, then you need to review your function's code.


Ausum




----- Original Message -----
From: "Jorg E. Rødsjø" <jorgelr@stud.ntnu.no>
To: <zope@zope.org>
Sent: Wednesday, November 27, 2002 7:54 AM
Subject: [Zope] growing webpage


> Hi
>
> My dtml looks like this:
>
> <table>
>   <dtml-in expr="functionCall('spam')" mapping>
>     <tr>
>       <td><dtml-var dictKey1></td>
>       <td><dtml-var dictKey2></td>
>     </tr>
>   </dtml-in>
> </table>
>
> Where the functionCall returns a list of dictionaries from an External
> method. Everything works fine. But if the page is reloaded, the <dtml-in>
> tag seems to be run twice, resultning in double the amount of <tr>'s. When
> I continnue to reload it, the table just keeps getting bigger. The <table>
> tags are not repeated. Only the stuff inside the <dtml-in>.
>
> If I try to open the page in a new browser, the page is as big as it was
> after reloading it a couple of times in the first browser. So something in
> zope is doing this.
>
> This is at the moment more than mildly frustrating. Anyone?
>
> -jorg
> --
> Jorg E. Rødsjø       "Knowledge is power. Power corrupts.
> elsewhere.dhs.org     Study hard, be evil."
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>