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>
symb = find_global(*symb_info, Broken=ZODBBroken)<br><br>I'm at a real loss here.<br>Any help please?<br><br>Chris.<br>