[Zope-dev] KeyError with __eq__

Dieter Maurer dieter@handshake.de
Sat, 22 Dec 2001 23:27:05 +0100


Joshua Lanza writes:
 > I'm trying to publish an object without using content_publish_form (so
 > directly invoking content_status_modify) and I'm getting 
 > 
 > Error Type: KeyError
 > Error Value: __eq__
 > 
 > The only place I find __eq__ in the zope installation is in UserList.py,
 > where it appears to be some kind of redefinition of '=='. UserList.py
 > does not appear in the stack trace, so I'm confused as to what may be
 > happening here. 
"__eq__" is the method a class can define to customize its "==".

It's strange that "__eq__" is accessed as a key.
Do you have a traceback?


Dieter