<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 5:03 PM, Chris Fanning <span dir="ltr"><<a href="mailto:christopher.fanning@gmail.com">christopher.fanning@gmail.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;">
Hi,<br><br>I've been using zodb as the database on a homebrew cms since 2004 without one single problem. :)<br>Now we're changing hardware so we're upgrading software too. <br>I'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('pages'):<br> dbroot['pages'] = PersistentMapping()<br><br>
So I changed the Persistence to<br>from persistent.mapping import PersistentMapping<br><br>And now I get the error<br>'PersistentMapping' object has no attribute 'has_key'<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 "build/bdist.linux-x86_64/egg/zodbupdate/serialize.py", 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'm at a real loss here.<br>Any help please?<br><font color="#888888"><br>Chris.<br>
</font></blockquote></div><br>