Instantiating only one object of a Product in Zope 2.5.1

sameer sameer_ at email.com
Mon Jan 6 17:07:20 CET 2003


I don't know if this forum is the right one to post for zope issues,
but here's my question.

I have a product that I wrote in zope which is just a big hash.  It
loads in company names as keys, and from a text file, adds ticker
items as each value for a particular key.  Now I only want this huge
dictionary to load once, which is when zope starts up (possibly in a
global space), as I need one copy of it and I need that one copy to
update every x number of minutes.  Currently, I think, each user that
views this product, loads his own copy of the hash, which makes it
slow and a memory hog.  I only want a single copy available to all
users, and the data refresh time to be determined by the system or the
user.

I am using: Zope 2.5.1 with Python 2.1.3 on win 2k professional.  

All help is highly appreciated.




More information about the Python-list mailing list