<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 5:03 PM, Chris Fanning <span dir="ltr">&lt;<a href="mailto:christopher.fanning@gmail.com">christopher.fanning@gmail.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;">

Hi,<br><br>I&#39;ve been using zodb as the database on a homebrew cms since 2004 without one single problem. :)<br>Now we&#39;re changing hardware so we&#39;re upgrading software too. <br>I&#39;m running into problems.<br>


<br>The client starts like this.<br><br>from Persistence import PersistentMapping<br>def __init__(self):<br>  .....<br>  if not dbroot.has_key(&#39;pages&#39;):<br>    dbroot[&#39;pages&#39;] = PersistentMapping()<br><br>


So I changed the Persistence to<br>from persistent.mapping import PersistentMapping<br><br>And now I get the error<br>&#39;PersistentMapping&#39; object has no attribute &#39;has_key&#39;<br><br>From what I understand the objects are Broken and I need to upgrade the zodb.<br>


<br>So I did<br>#easy_install zodbupdate<br><br>However I get this error.<br><br>Running zodbupdate-0.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iNI2JT/zodbupdate-0.5/egg-dist-tmp-AstNfF<br>  File &quot;build/bdist.linux-x86_64/egg/zodbupdate/serialize.py&quot;, line 165<br>


    <br></blockquote><div> <br>symb = find_global(*symb_info, Broken=ZODBBroken)<br>                                                                 ^<br>SyntaxError: invalid syntax<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;">

<br>I&#39;m at a real loss here.<br>Any help please?<br><font color="#888888"><br>Chris.<br>
</font></blockquote></div><br>