Re: objects broken after moving their class from on module to the other
Julien Anguenot <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Organization | NUXEO |
| Message-ID | <[email protected]> |
Hi Joachim,
Joachim Schmitz wrote:
> for cleaningup purposes I moved a class for an portal_type from one
> module to the other. After restarting zope all objects of that class
> were broken. After moving the class back to the original module
> everything is fine again. Is there a way to move a class from one module
> to the other ?
You got 2 solutions here :
1)Looking for all broken classes through the ZODB and upgrade the
corresponding attribute in the __dict__ and persist them back.
IIRC, you should find some code doing this within CPSDocument with
"News Item". (see upgrad.py)
2) Define BBB classes :
See for instance :
http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSCore/trunk/CPSWorkflowTool.py
Cheers,
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE+Mz6GhoG8MxZ/pIRAsJtAJ4wGV9igLtPGaNqJNsktrUGK7uc0wCdHzPU OA3XkjFB5V3hs+ZYW6AbzSo= =QEVT -----END PGP SIGNATURE-----