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 >

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to