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
reactor.addSystemEventTrigger('before',
'shutdown', shutdown)
and this seems to work. (did this under an event handler for
DatabaseOpenedWithRootEvent).
Just want to confirm, is it the right way to do, or there is some better way
to do things?
With regards,
-Shailesh
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users