[Zope3-Users] Creating edit form with z3c.form
Florian Lindner
mailinglists at xgm.de
Mon Aug 20 06:09:06 EDT 2007
Am Sonntag, 19. August 2007 schrieb Hermann Himmelbauer:
> Am Samstag, 18. August 2007 12:53 schrieb Florian Lindner:
> > Hello,
> > I try to create an edit form with z3c.form but it gives me an system
> > error only:
> >
> > File "/home/florian/Desktop/zope/lib/python/z3c/form/form.py", line
> > 120, in updateWidgets
> > self.widgets = zope.component.getMultiAdapter(
> > File "/home/florian/Zope3/src/zope/component/_api.py", line 103, in
> > getMultiAdapter
> > raise ComponentLookupError(objects, interface, name)
> > ComponentLookupError: ((<zope.app.publisher.browser.viewmeta.EditEntry
> > object at 0x9f6c68c>, <zope.publisher.browser.BrowserRequest instance
> > URL=http://localhost:8080/Blog/2007_08_16_abc/EditEntry.html>,
> > <Blog.blog.BlogEntry object at 0x9264d2c>), <InterfaceClass
> > z3c.form.interfaces.IWidgets>, u'')
> > 127.0.0.1 - - [18/Aug/2007:12:45:24
> > +0200] "GET /Blog/2007_08_16_abc/EditEntry.html HTTP/1.1" 500
> > 89 "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like
> > Gecko)"
> > 127.0.0.1 - - [18/Aug/2007:12:45:25 +0200] "GET /favicon.ico HTTP/1.1"
> > 404 4159 "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7
> > (like Gecko)"
>
> Hmmm, perhaps the browser request is not marked with the IFormLayer layer?
> (Hence you need a skin that derives from it.)
It's a real browser request (not generated by some piece of test code, but
from a real browser) with no layer (thus the default layer). Moreover mostly
indentical code that uses formlib works perfectly.
> Moreover I think you have to use pagelets instead of browser pages for your
> form?
I'll try that.
Regards,
Florian
More information about the Zope3-users
mailing list