[Zope3-dev] Persistence?
Steve Alexander
steve@cat-box.net
Sun, 08 Jun 2003 20:17:03 +0300
> That's it! The persistence works fine now!
>
> Thank you very much!
Thank you for finding a subtle bug in the event service code.
> (No I have to face the question why afterAddHook() is called twice, and
> I get each event twice too!)
In your afterAddHook method, add the line
import pdb; pdb.set_trace()
When you're in the debugger, run the bt command to get a backtrace.
From the two backtraces, one for each time afterAddHook is called, you
should be able to see the circumstances under which it is called.
--
Steve Alexander