Ok, Thank you!<br><br><div><span class="gmail_quote">2007/2/22, Jonathan <<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><snip><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've a python script which creates a dictionnary each time it'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'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></snip><br><br>You could easily create a property field on a folder that contains the<br>'global' information. 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 - <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>** No cross posts or HTML encoding! **<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>