zope generations updating objects with method name change
Joshua Immanuel <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Organization | HiPro IT Solutions Private Limited |
| Message-ID | <[email protected]> |
Hello,
My application is based on Grok. Whenver, I change a method-name or add
a method to a Model, Grok fails to load the previous version from the
ZODB. I resorted to writing simple generations (zope.generations) to
update the stored model objects.
For 'method name' changes, this basically means:
1. create new object
2. copy every single attribute of old-object to the new-object
3. delete old-object
4. save new-object
How does everyone else do this? Or is there a way to make grok/zope/zodb
not persist the method-names and signatures in a content component (grok
Model)?
--
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.12 (GNU/Linux) iEYEABECAAYFAlE86skACgkQWw85XwuSFMJSIQCfcy4suZpDwzUXCOoclse1gszs j38AoITxDDSNSKDxKOZRjGkEoYo8R1To =dn8J -----END PGP SIGNATURE-----