[Zope-dev] oh boy [id,getId() madness]
Romain Slootmaekers
romain@zzict.com
Wed, 11 Jun 2003 20:13:12 +0200
Yo,
I have an error in this code fragment:
------------- fragment ----------
for childObject in container.objectValues():
id=childObject.getId()
childObject2=container[id] # sometimes gives a KeyError ????
#...
------------- /fragment ----------
So it means that there are contained objects with an getId member that
returns something different than the key that is used for these objects
in the container object.
As it turns out, I indeed have such objects in my ZODB, and they cause
all kinds of problems (fe, you can't rename them with the management
interface)
The questions are:
- has anyone else experienced this ?
- what could be causing this ?
TIA,
Romain.