Op 11-08-11 01:19, Maurits van Rees schreef:
Op 09-08-11 08:44, Mikko Ohtamaa schreef:
It is probably called by processForm(), at_post_create() or whatever
happens to be your magical AT function today what you should call
after invokeFactory().
my_new_object.processForm() should do the trick indeed.
Or fire the event yourself:
from zope.event import notify
from Products.Archetypes.event import ObjectInitializedEvent
notify(ObjectEditedEvent(my_new_object))
Oh, that last one should have been ObjectInitializedEvent as well of course.
--
Maurits van Rees
Web App Programmer at Zest Software: http://zestsoftware.nl
Personal website: http://maurits.vanrees.org/
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers