[Zope3-Users] Trying to use browser:form -> 404
Alen Stanisic
alen.stanisic at gmail.com
Fri Feb 10 18:29:54 EST 2006
On Fri, 2006-02-10 at 22:18 +0100, Florian Lindner wrote:
> Thanks for your example. But I've the same error, a 404.
>
> in views.py:
>
> from zope.formlib.form import EditForm
> from interfaces import IRegistrationForm
>
> class registrationForm(EditForm):
> form_fields = IRegistrationForm
>
>
> in configure.zcml:
>
> <page
> name="registrationForm.html"
> class=".views.registrationForm"
> permission="zope.Public"
> layer="centershock"
> for="CS.centershock.interfaces.ICentershock" />
>
>
> And I try to call it with:
>
> /++skin++centershock/cs/registerForm.html whereas cs is a ICentershock object.
>
> It still gives a 404.
>
> Any guess what's wrong?
>
What happens if you changed your view.py to:
from zope.formlib.form import Form
.
.
class registrationForm(Form):
.
.
Alen
More information about the Zope3-users
mailing list