<br><div class="gmail_quote">On Tue, Feb 15, 2011 at 6:11 PM, Tres Seaver <span dir="ltr"><<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>On 02/15/2011 12:06 PM, Tres Seaver wrote:<br>
<div class="im">> On 02/15/2011 11:37 AM, Chris Fanning wrote:<br>
>> On Tue, Feb 15, 2011 at 5:16 PM, Adam GROSZER <<a href="mailto:agroszer@gmail.com">agroszer@gmail.com</a>> wrote:<br>
><br>
>>> Hello,<br>
>>><br>
>>> You got to use python 2.6, at least for zodbupdate.<br>
>>><br>
>>><br>
>> Thanks. I'd managed to get it going with 2.5 but I was getting this<br>
>> warning..<br>
><br>
>> Warning: Missing factory for Persistence PersistentMapping<br>
><br>
>> Now, using python 2.6, I'm still getting the same warning.<br>
>> Looks like I need to get this missing factory because the resulting zodb.fs<br>
>> still gives the same error<br>
>> AttributeError: 'PersistentMapping' object has no attribute 'has_key'<br>
><br>
>> How do I install/configure this?<br>
><br>
</div><div class="im">> You need to make the class importable at the "old" location in order to<br>
> use instances of that class to convert to the new location. Something<br>
> like::<br>
><br>
> import persistent.mapping<br>
> import sys<br>
> sys.modules['Persistence.PersistentMapping'] = \<br>
> sys.modules['persistent.mapping']<br>
><br>
> Then you should be able toload you old 'pages' object and create a new<br>
> one (using the new class) and copy the contents into it from the old one.<br>
<br>
</div>Actually, you can install the 'Persistence' package directly (it is<br>
distributed separately from Zope):<br>
<br>
<a href="http://pypi.python.org/pypi/Persistence" target="_blank">http://pypi.python.org/pypi/Persistence</a><br>
<div class="im"><br></div></blockquote><div><br>Thankyou both,<br><br>I've can load the database now.<br><br>Cheers,<br>Chris.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
<br>
Tres.<br>
- --<br>
===================================================================<br>
Tres Seaver +1 540-429-0999 <a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a><br>
Palladion Software "Excellence by Design" <a href="http://palladion.com" target="_blank">http://palladion.com</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
</div>iEYEARECAAYFAk1as8MACgkQ+gerLs4ltQ7yzgCeKxXGqx/EIhxfR2BWDtZnOWpF<br>
qSoAn3T323/8RIS8wvYYRXmUX5n+lG2J<br>
=dRWP<br>
-----END PGP SIGNATURE-----<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
For more information about ZODB, see the ZODB Wiki:<br>
<a href="http://www.zope.org/Wikis/ZODB/" target="_blank">http://www.zope.org/Wikis/ZODB/</a><br>
<br>
ZODB-Dev mailing list - <a href="mailto:ZODB-Dev@zope.org">ZODB-Dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/zodb-dev" target="_blank">https://mail.zope.org/mailman/listinfo/zodb-dev</a><br>
</div></div></blockquote></div><br>