[Zope-dev] Method invocation after Zope restart

2001-07-05 Thread Paulo M. Goncalves
Hi everybody, Just one question (maybe a newbie question): After a Zope restart I want to invoke a method from an object instance. Is there a such mechanism builtin in the Zope startup? Or in a more wide perspective, how could an object instance be notified of a Zope restart? Thanks, Paulo

Re: [Zope-dev] Method invocation after Zope restart

2001-07-05 Thread Chris McDonough
Use the __init__.py of a package inside the Products directory to do something at startup (e.g. Products/ZCatalog/__init__.py). Use Python's sys.exitfunc to hook a shutdown. Paulo M. Goncalves wrote: Hi everybody, Just one question (maybe a newbie question): After a Zope restart I want