On 18.05.09 00:42, Simon Elbaz wrote: > Hi, > I am trying to execute some code at zope3 server startup. Zope3 posts > hint using a IProcessStartingEvent subscriber in configure.zcml. > > Here is an extract of configure.zcml: > > <subscriber > handler="cdcadama.authentication.onStartup" > for="zope.app.appsetup.interfaces.IProcessStartingEvent" > /> > > and the handler definition: > > def onStartup(event): > print 'hello' > > The problem is that the function is not called at server startup. But > when a call to notify(zope.app.appsetup.interfaces.ProcessStarting()) > is made later in the code (after the server starts), it prints 'hello'. > Isn't there a DatabaseOpened event?
-aj
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:i...@zopyx.com title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard
_______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users