[Zope] objects as values in a python dictionary
Peter Bengtsson
mail@peterbe.com
Wed, 20 Jun 2001 10:20:45 +0200
This concerns both Python Script and External Methods. I haven't tried it
with DTML (if possible).
A dictionary can use objects as values I think.
res={}
res[string] = "A wicked module I use often"
res[context] = "This is where you were :)"
That works, but it doesn't work when I loop over objectValues
for object in folderobject.objectValues():
res[object] = "yeah"
The error message is AttributeError and __hash__ something.
What have I missed?
Peter