Chris Withers escribió:
data = oid_klass_loaders[reference_type](*args)
I'm guessing this isn't good ;-) What does that KeyError mean?
What would be the suggested way of proceeding?
That happened to me once. It was a plone site, with two ZODB's, one
mounted on top of another. I had an archetype content type that had a
FileField, but I had forgotten to set 'NonEmptyFile' as validator for
the field, and some default object (I think it was an empty list ) was
being set for all content objects with no file attached. The same empty
list for all content objects. I moved some of those objects from one
ZODB to the other, and then, when trying to pack, I would have that
error. The reference type 'n' is (from ZODB/serialize.py):
Multi-database simple object reference. The arguments consist
of a databaase name, and an object id.
the empty list was referenced from multiple databases.
there is some discussion about this issue here:
What I did was to walk through all objects in the database removing the
empty files, and then packing was possible.
Hope that helps.
Enrique Pérez Arnaud
Yaco Sistemas S.L.
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org