[z3-five] Events / Archetypes

Martin Aspeli optilude at gmx.net
Fri Aug 4 21:21:50 CEST 2006


Kai Diefenbach wrote:

> Now the subscribers are called indeed, but all fields of the comment are
> empty, that means, within notifyAdd comment.text is "" and
> comment.getText() throws a AttributeError.

I believe IObjectAddedEvent happens as soon as the object is created. 
Note that in CMF terms, this means as soon as you hit the "add item" 
link, so even if it's created in portal_factory, it's still created. In 
other words, you're getting the event before base_edit's Save button has 
been clicked.

Martin



More information about the z3-five mailing list