Hi Florian > Betreff: [Zope3-Users] Creating edit form with z3c.form > > Hello, > I try to create an edit form with z3c.form but it gives me an > system error only:
[...] > 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'') Try to find out which field doesn't have a widget. This is probably the __parent__ attribute. > My code looks like that: > > from z3c.form import form, field > from z3c.formui import layout > > class EditEntry(layout.FormLayoutSupport, form.EditForm): > fields = field.Fields(IBlogEntry) Try to restrict your fields and find out which one does not have a widget with: fields = Fields(IBlogEntry).select('title', 'etc') Regards Roger Ineichen _____________________________ END OF MESSAGE _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users