[Zope3-Users] Dict produces ComponentLookupError

Kai O. legokai2 at aol.com
Tue Feb 24 04:00:09 EST 2009


Hello,
I wanted to use a Dict-schema for mapping a Date to a Bool (in my case 
an on/off-status).
Everything works fine, except the Dict.
I bin/runzope (works)
try to 'Add' an object and get the following error on the console:

File "/usr/local/www/Zope3/lib/python/zope/component/_api.py", line 103, 
in getMultiAdapter
    raise ComponentLookupError(objects, interface, name)
ComponentLookupError: ((<zope.schema._field.Dict object at 0x2a87afac>, 
<zope.publisher.browser.BrowserRequest instance 
URL=http://localhost:8080/Objectfolder/+/mypacket.myobjectclass%3D>), 
<InterfaceClass zope.app.form.interfaces.IInputWidget>, u'')

I can't find a bug in my code and tried to check the Implementation of 
the 'Dict'-Schema (zope.schema.dict inherits from Iterable, which is 
imported to _field.py from _bootstrapfields.py; Iterable inherits from 
container, container from Field).
I found a mail from Frank Burkhardt on this mailinglist:
http://mail.zope.org/pipermail/zope3-users/2006-June/003720.html
is this still applicable? (it's nearly 2 Years old)
And if, how can I use it?
Greets from Germany,
Kai


More information about the Zope3-users mailing list