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?


Chris Lehmann

Chris Lehmann
< clehmann at chrislehmann dot net >

Zope3-users mailing list

Reply via email to