[Zope3-Users] Dict produces ComponentLookupError

Frank Burkhardt fbo2 at gmx.net
Tue Feb 24 14:09:52 EST 2009


Hi,

On Tue, Feb 24, 2009 at 10:00:09AM +0100, Kai O. wrote:
> 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'')

AFAIK there is still no simple Dict widget in Zope 3.

> 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)

Since my Zope-Site is still working, I guess it's still usable :-) .

Best,

Frank


More information about the Zope3-users mailing list