[Zope3-Users] Executing utility specific code on server startup
Chris Lehmann
clehmann at chrislehmann.net
Sat Oct 22 13:01:59 EDT 2005
Hello,
I have a utility that needs to start several threads when zope starts
up. What is the best way to accomplish this?
So far I have tried to use the IDatabaseOpenedWithRoot and
IProcessStarting events but when I try and register them with the
following code, my handlers do not get called. Code from the
constructor of my utility class:
zapi.getGlobalSiteManager().subscribe([IProcessStartingEvent],None,
self.onStartup)
What am I doing wrong?
Thanks,
Chris Lehmann
--
Chris Lehmann
< clehmann at chrislehmann dot net >
More information about the Zope3-users
mailing list