Hi Stéphane,<div><br></div><div>I think you create an issue here: <a href="https://github.com/cguardia/ZODB-Documentation">https://github.com/cguardia/ZODB-Documentation</a> (or maybe even fix the example)</div><div><br></div>

<div>Kind regards,</div><div>Alex.</div><div><br><div class="gmail_quote">On 26 July 2011 14:51, Stéphane Klein <span dir="ltr">&lt;<a href="mailto:stephane@harobed.org">stephane@harobed.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Le 26/07/2011 13:48, Wichert Akkerman a écrit :<br>
<div class="im">&gt; On 07/26/2011 01:47 PM, Stéphane Klein wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve this in my source code :<br>
&gt;&gt;<br>
&gt;&gt; from zope.interface import implements<br>
&gt;&gt; from transaction.interfaces import ISynchronizer<br>
&gt;&gt;<br>
&gt;&gt; class Synchronizer(object):<br>
&gt;&gt;        implements(ISynchronizer)<br>
&gt;&gt;<br>
&gt;&gt;        def beforeCompletion(self, transaction):<br>
&gt;&gt;            print(&quot;beforeCompletion&quot;)<br>
&gt;&gt;<br>
&gt;&gt;        def afterCompletion(self, transaction):<br>
&gt;&gt;            print(&quot;afterCompletion&quot;, transaction)<br>
&gt;&gt;<br>
&gt;&gt;        def newTransaction(self, transaction):<br>
&gt;&gt;            print(&quot;newTransaction&quot;, transaction)<br>
&gt;&gt;<br>
&gt;&gt; ...<br>
&gt;&gt;<br>
&gt;&gt; transaction.manager.registerSynch(Synchronizer)<br>
&gt;<br>
&gt; I bet this works:<br>
&gt;<br>
&gt; transaction.manager.registerSynch(Synchronizer())<br>
<br>
</div>Ok, thanks then there are an issue here :<br>
<br>
<a href="http://www.zodb.org/zodbbook/transactions.html#synchronizers" target="_blank">http://www.zodb.org/zodbbook/transactions.html#synchronizers</a><br>
<div class="im"><br>
Regards,<br>
Stephane<br>
<br>
--<br>
Stéphane Klein &lt;<a href="mailto:stephane@harobed.org">stephane@harobed.org</a>&gt;<br>
blog: <a href="http://stephane-klein.info" target="_blank">http://stephane-klein.info</a><br>
Twitter: <a href="http://twitter.com/klein_stephane" target="_blank">http://twitter.com/klein_stephane</a><br>
pro: <a href="http://www.is-webdesign.com" target="_blank">http://www.is-webdesign.com</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">For more information about ZODB, see the ZODB Wiki:<br>
<a href="http://www.zope.org/Wikis/ZODB/" target="_blank">http://www.zope.org/Wikis/ZODB/</a><br>
<br>
ZODB-Dev mailing list  -  <a href="mailto:ZODB-Dev@zope.org">ZODB-Dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/zodb-dev" target="_blank">https://mail.zope.org/mailman/listinfo/zodb-dev</a><br>
</div></div></blockquote></div><br></div>