[Zope-dev] POSKeyError how to remove
Rupesh P Raj
roopesh.praj at gmail.com
Thu Jul 23 06:57:25 EDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20090723/6279a399/attachment.html
More information about the Zope-Dev
mailing list