Hello all,
        I am using zope.formlib.form package for my forms, when overriding the
'createAndAdd' method of form.AddForm I don't explicitly do the
zope.event.notify(ObjectCreatedEvent(..)) call. I just add the data to
self.context and it gets added (persisted) in the ZODB. 

        But when I extend the form.EditForm in order to implement my own
"Apply" action method, just calling the form.applyData or
form.applyChanges doesn't persist the data.
zope.event.notify(ObjectModifiedEvent(..)) call is needed in order to
persist data.

        If someone could explain on this or point me to some documentation
relating to this would be very helpful to me.

Thank you

Joshua Immanuel
HiPro IT Solutions Private Limited

Attachment: signature.asc
Description: This is a digitally signed message part

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to