On Friday 01 December 2006 07:04, Shailesh Kumar wrote:
Just want to confirm, is it the right way to do, or there is some better
way to do things?
If you use twisted, this is a good way though we probably should have a
shutdown event. Could you add this to the issue collector?
Regards,
Hi,
I wanted to do some cleanup activities during the time of server shutdown.
Couldn't find any particular event that is sent at that time. But looking
at: zope.app.main.main, i tried:
from twisted.internet import reactor
def shutdown():
#shutdown code here.
pass