Ok, Thank you!<br><br><div><span class="gmail_quote">2007/2/22, Jonathan &lt;<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&lt;snip&gt;<br>----- Original Message -----<br>From: jerome prudent<br>To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>Sent: Thursday, February 22, 2007 5:50 AM<br>Subject: [Zope] How to create a global variable?
<br>Hi!<br>I&#39;ve a python script which creates a dictionnary each time it&#39;s called. This<br>dictionnary is always the same. I would increase the performance if I could<br>generate and cache the dictionnary once, then reuse it. I&#39;m looking for a
<br>space like REQUEST.SESSION that is the same for each user of my website<br>(other solutions are welcome).<br>&lt;/snip&gt;<br><br>You could easily create a property field on a folder that contains the<br>&#39;global&#39; information.&nbsp;&nbsp;Any script or method that has access to that folder
<br>can access that property field.<br><br><br>Jonathan<br><br><br><br>_______________________________________________<br>Zope maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope">
http://mail.zope.org/mailman/listinfo/zope</a><br>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**<br>(Related lists -<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce
</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br><br></blockquote></div><br>