Re: [Zope] How to create a global variable?

2007-02-22 Thread Paul Winkler
On Thu, Feb 22, 2007 at 11:50:51AM +0100, jerome prudent wrote:
> Hi!
> I've a python script which creates a dictionnary each time it's called. This
> dictionnary is always the same. I would increase the performance if I could
> generate and cache the dictionnary once, then reuse it. I'm looking for a
> space like REQUEST.SESSION that is the same for each user of my website
> (other solutions are welcome).
> 
> Do you know how to do that?

RAM Cache Manager.


-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to create a global variable?

2007-02-22 Thread jerome prudent

Ok, Thank you!

2007/2/22, Jonathan <[EMAIL PROTECTED]>:




- Original Message -
From: jerome prudent
To: zope@zope.org
Sent: Thursday, February 22, 2007 5:50 AM
Subject: [Zope] How to create a global variable?
Hi!
I've a python script which creates a dictionnary each time it's called.
This
dictionnary is always the same. I would increase the performance if I
could
generate and cache the dictionnary once, then reuse it. I'm looking for a
space like REQUEST.SESSION that is the same for each user of my website
(other solutions are welcome).


You could easily create a property field on a folder that contains the
'global' information.  Any script or method that has access to that folder
can access that property field.


Jonathan



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to create a global variable?

2007-02-22 Thread Jonathan



- Original Message - 
From: jerome prudent

To: zope@zope.org
Sent: Thursday, February 22, 2007 5:50 AM
Subject: [Zope] How to create a global variable?
Hi!
I've a python script which creates a dictionnary each time it's called. This 
dictionnary is always the same. I would increase the performance if I could 
generate and cache the dictionnary once, then reuse it. I'm looking for a 
space like REQUEST.SESSION that is the same for each user of my website 
(other solutions are welcome).



You could easily create a property field on a folder that contains the 
'global' information.  Any script or method that has access to that folder 
can access that property field.



Jonathan



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev ) 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )