-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/15/2011 11:37 AM, Chris Fanning wrote: > On Tue, Feb 15, 2011 at 5:16 PM, Adam GROSZER <agros...@gmail.com> wrote: > >> Hello, >> >> You got to use python 2.6, at least for zodbupdate. >> >> > Thanks. I'd managed to get it going with 2.5 but I was getting this > warning.. > > Warning: Missing factory for Persistence PersistentMapping > > Now, using python 2.6, I'm still getting the same warning. > Looks like I need to get this missing factory because the resulting zodb.fs > still gives the same error > AttributeError: 'PersistentMapping' object has no attribute 'has_key' > > How do I install/configure this?
You need to make the class importable at the "old" location in order to use instances of that class to convert to the new location. Something like:: import persistent.mapping import sys sys.modules['Persistence.PersistentMapping'] = \ sys.modules['persistent.mapping'] Then you should be able toload you old 'pages' object and create a new one (using the new class) and copy the contents into it from the old one. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1asnoACgkQ+gerLs4ltQ4zkwCgzodbX4J3d4Ig+bmk4Ld09k4j c40AnA9bOnrromUUb4ZI8tgicIUAHHVp =u1n2 -----END PGP SIGNATURE----- _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev