8 May
2007
8 May
'07
6:31 p.m.
Ken Ara wrote at 2007-5-7 13:47 -0700:
... objectItems * Module OFS.ObjectManager, line 290, in _getOb
AttributeError: Documents_catalog
"ObjectManager" has 2 references to its children: one in "_objects" and one as a direct attribute. You deleted the direct attribute but forget to delete the reference in "_objects", thus making the "ObjectManager" data structure inconsistent. The easiest way to fix this is something like: from OFS.DTMLMethod import DTMLMethod object_manager.Documents_catalog = DTMLMethod() object_manager._delObject('Documents_catalog') Then commit. This is also the easiest way to get rid of broken objects (as it avoids the inconsistencies in the first place). -- Dieter