[Zope3-Users] z3c.form and subforms in an AddForm?

Hermann Himmelbauer dusty at qwer.tk
Wed Jul 4 14:00:18 EDT 2007

Am Mittwoch, 4. Juli 2007 18:59 schrieb Matt Bowen:

>   File "/opt/zope/python2.4/lib/python2.4/site-packages/z3c.form-
> 1.3.0-py2.4.egg/z3c/form/form.py", line 167, in updateWidgets
>     self.widgets = zope.component.getMultiAdapter(
>   File "/opt/zope/zope-3.4.0a1/lib/python/zope/component/_api.py", line
> 103, in getMultiAdapter
>     raise ComponentLookupError(objects, interface, name)
> zope.component.interfaces.ComponentLookupError: ((<
> z3c.pagelet.zcml.NextActionAddForm object at 0x2b69896b4850>, <
> zope.publisher.browser.BrowserRequest instance URL=
> http://localhost:9080/++skin++MovingTargetBrowser/addNextAction.html>, <
> zope.app.folder.folder.Folder object at 0x2b69896eb0c8>), <InterfaceClass
> z3c.form.interfaces.IWidgets>, u'')
> I keep reading over the .txt files in z3c.form, and I feel like I may be
> missing some line. Do I need a datamanager? My schema is pretty
> straightforward:

I'm pretty clueless here, too. What I however don't understand why an adapter 
for a Folder object is queried.

However, I think the interface is fine and I don't think you need a 
datamanager in your case. I'd check if the request is marked with a 
IFormLayer, though.

Here's once again the newbie problem: there's a query for an adapter, which is 
for sure registered somewhere in the package, however the objects are 
probably not marked with the right interfaces, so the query fails and it's 
hard to find out why...


x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7

More information about the Zope3-users mailing list