Hi,
 
Is there a way that I can maintain persistent python objects in memory through the Zope Server?
 
As a simple example if I create a counter in a python module and access it through an external method, the module seems to get reloaded every so often, so the counter will get reset. Can I avoid this? Basically I just want to keep a persistent hashtable/Dictionary.
 
MODULE:
*************************************************************
__persist = {};
__persist['count'] = 0;
 
def getNextCount():
   __persist['count'] = int( __persist['count'] )+1
   return __persist['count']
************************************************************
External method in DTML:
 
<dtml-var "getNextCount()">
 
 
thanks in advance