[Zope-dev] POSKeyError how to remove
Andreas Jung
lists at zopyx.com
Thu Jul 23 08:12:45 EDT 2009
http://spamsch.blogspot.com/2009/04/how-to-repair-broken-zodb-poskeyerror.html
-aj
On 23.07.09 12:57, Rupesh P Raj wrote:
> Hi,
>
> Using Zope Debug Console, I used a part of the code fsrefs.py to find
> the oid's of POSKeyError:
>
> fs = FileStorage(path, read_only=1)
> undone = {}
>
> noload = {}
>
> for oid in fs._index.keys():
> try:
> data, serial = fs.load(oid, "")
> except (KeyboardInterrupt, SystemExit):
> raise
> except POSKeyError:
> undone[oid] = 1
> except:
> if VERBOSE:
> traceback.print_exc()
> noload[oid] = 1
>
> This gave me one oid.Then I tried something like below :
>
> obj = app._p_jar[oid]
>
> But this gave me another POSKeyError instead :(
>
> Why does this happen? How can I delete this object.
>
> Thanks,
> Roopesh
> ------------------------------------------------------------------------
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )
>
--
ZOPYX Ltd. & Co KG \ ZOPYX & Friends
Charlottenstr. 37/1 \ The experts for your Python, Zope and
D-72070 Tübingen \ Plone projects
www.zopyx.com, info at zopyx.com \ www.zopyx.de/friends, friends at zopyx.de
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090723/f41a7007/attachment.vcf
More information about the Zope-Dev
mailing list