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

> Moreover I think you have to use pagelets instead of browser pages for your
> form?

I have registered it with a pagelet now:

    <z3c:pagelet
        name="EditEntry.html"
        for="..interfaces.IBlogEntry"
        class=".views.EditEntry"
        permission="Blog.EditEntry"
    />


but it's still the same error:

  File "/home/florian/Zope3/src/zope/component/_api.py", line 103, in 
getMultiAdapter
    raise ComponentLookupError(objects, interface, name)
ComponentLookupError: ((<z3c.pagelet.zcml.EditEntry object at 0x9bbfdac>, 
<zope.publisher.browser.BrowserRequest instance 
URL=http://localhost:8080/Blog/2007_08_16_abc/EditEntry.html>, 
<Blog.blog.BlogEntry object at 0x92ccbec>), <InterfaceClass 
z3c.form.interfaces.IWidgets>, u'')


Regards,

Florian
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to