-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16.04.2009 1:09 Uhr, Hanno Schlichting wrote: > Chris Withers wrote: >> A little gotcha in 2.12 is that, because Versions are now gone, you get >> some weird errors when you try and view the ZMI using an older Data.fs. >> >> The following fixed it for me: >> >> >>> cp = app.Control_Panel >> >>> cp._objects = tuple([i for i in app._objects if >> i['id']!='Versions']) >> >>> import transaction >> >>> transaction.get().commit() > > I think we don't have anything like zope.app.generations for Zope2 do > we?
AFAIK no (as far as I remember a discussion with Theuni about using generations). > IIRC we added code to catch and inline-migrate these things so far > (I'm thinking about some ZCatalog changes from a while back). You may refer to the on-the-fly migration for the catalogs used for product help (somewhere in OFSP) or perhaps to the __len__ migration code. > > So the way to handle this would be to add some code to the part of the > Zope startup code that creates the Control_Panel to always check for > "Versions" in there and remove it when found, correct? +1 Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknmtmQACgkQCJIWIbr9KYx3BQCfYrFEiN2BUoNLPKTWpF0AfbDs Vo4An3XGt2vY4WN60GEHGKn4IQPBSnOL =ZA2f -----END PGP SIGNATURE-----
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[email protected] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard
_______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
