<br><div class="gmail_quote">On Tue, Feb 15, 2011 at 6:11 PM, Tres Seaver <span dir="ltr">&lt;<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>&gt;</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">&gt; On 02/15/2011 11:37 AM, Chris Fanning wrote:<br>
&gt;&gt; On Tue, Feb 15, 2011 at 5:16 PM, Adam GROSZER &lt;<a href="mailto:agroszer@gmail.com">agroszer@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You got to use python 2.6, at least for zodbupdate.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt; Thanks. I&#39;d managed to get it going with 2.5 but I was getting this<br>
&gt;&gt; warning..<br>
&gt;<br>
&gt;&gt; Warning: Missing factory for Persistence PersistentMapping<br>
&gt;<br>
&gt;&gt; Now, using python 2.6, I&#39;m still getting the same warning.<br>
&gt;&gt; Looks like I need to get this missing factory because the resulting zodb.fs<br>
&gt;&gt; still gives the same error<br>
&gt;&gt; AttributeError: &#39;PersistentMapping&#39; object has no attribute &#39;has_key&#39;<br>
&gt;<br>
&gt;&gt; How do I install/configure this?<br>
&gt;<br>
</div><div class="im">&gt; You need to make the class importable at the &quot;old&quot; location in order to<br>
&gt; use instances of that class to convert to the new location.  Something<br>
&gt; like::<br>
&gt;<br>
&gt;  import persistent.mapping<br>
&gt;  import sys<br>
&gt;  sys.modules[&#39;Persistence.PersistentMapping&#39;] = \<br>
&gt;         sys.modules[&#39;persistent.mapping&#39;]<br>
&gt;<br>
&gt; Then you should be able toload you old &#39;pages&#39; object and create a new<br>
&gt; one (using the new class) and copy the contents into it from the old one.<br>
<br>
</div>Actually, you can install the &#39;Persistence&#39; 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&#39;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   &quot;Excellence by Design&quot;    <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>