[BlueBream] Reg. persisting data in ZODB via forms
josh at hipro.co.in
Wed Jun 8 04:34:33 EDT 2011
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
If someone could explain on this or point me to some documentation
relating to this would be very helpful to me.
HiPro IT Solutions Private Limited
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/bluebream/attachments/20110608/858b8f87/attachment.bin
More information about the bluebream