It is now better: the event DatabaseOpened is caught at startup.<br>
However, it is surprising that ProcessStartingEvent  is not caught.<br>
<br>
Simon<br><br><div class="gmail_quote">On Mon, May 18, 2009 at 6:46 AM, Andreas Jung <span dir="ltr">&lt;<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 18.05.09 00:42, Simon Elbaz wrote:<br>
&gt; Hi,<br>
&gt; I am trying to execute some code at zope3 server startup. Zope3 posts<br>
&gt; hint using a  IProcessStartingEvent subscriber in configure.zcml.<br>
&gt;<br>
&gt; Here is an extract of configure.zcml:<br>
&gt;<br>
&gt; &lt;subscriber<br>
&gt;       handler=&quot;cdcadama.authentication.onStartup&quot;<br>
&gt;       for=&quot;zope.app.appsetup.interfaces.IProcessStartingEvent&quot;<br>
&gt; /&gt;<br>
&gt;<br>
&gt; and the handler definition:<br>
&gt;<br>
&gt; def onStartup(event):<br>
&gt;        print &#39;hello&#39;<br>
&gt;<br>
&gt; The problem is that the function is not called at server startup. But<br>
&gt; when a call to notify(zope.app.appsetup.interfaces.ProcessStarting())<br>
&gt; is made later  in the code (after the server starts), it prints &#39;hello&#39;.<br>
&gt;<br>
</div>Isn&#39;t there a DatabaseOpened event?<br>
<font color="#888888"><br>
-aj<br>
<br>
</font></blockquote></div><br>