Reg. persisting data in ZODB via forms

Joshua Immanuel <[email protected]>
Newsgroups gmane.comp.web.zope.devel,gmane.comp.web.zope.bluebream
Organization HiPro IT Solutions Private Limited
Message-ID <1307522073.2456.25.camel@jimman>
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

Regards
-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk3vNBIACgkQWw85XwuSFMKhXQCfWCnLDdTN1jePAROCMjpRx3AZ
f44AoKIbdFk11JOidrkQqA7DtiUhnSX/
=b5L9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.