[Zope3-Users] Trying to use browser:form -> 404
Florian Lindner
mailinglists at xgm.de
Fri Feb 10 08:00:15 EST 2006
Am Donnerstag, 9. Februar 2006 22:45 schrieb Bernd Dorn:
> On 09.02.2006, at 19:27, Florian Lindner wrote:
> > Hello,
> > I try to create a form build from a schema with browser:form:
> >
> > <form
> > name="registrationForm.html"
> > schema=".interfaces.registrationForm"
> > class=".views.registrationForm"
> > permission="zope.Public"
> > layer="centershock"
> > for="*"/>
> >
> >
> >
> > interfaces.registrationForm looks like that:
> >
> > from zope.interface import Interface
> > from zope.schema import TextLine, Password
> > class registrationForm(Interface):
> > login = TextLine(title=u"Username")
> >
> >
> > views.registrationForm:
> >
> > class registrationForm(object):
> > def __init__(self):
> > import pdb; pdb.set_trace()
> > def getData(self):
> > import pdb; pdb.set_trace()
> > def setData(self):
> > import pdb; pdb.set_trace()
> >
> > but when I try to call the URL:
> > http://horus:8080/++skin++centershock/registrationForm.html I just
> > get 404.
>
> maybe http://horus:8080/++skin++Centershock/registrationForm.html
>
> skin names are CamelCase per convention and layers lowercase
Not in my convention ;-)
The skin is applied correctly, the 404 error page is rendered with my skin.
Regards,
Florian
More information about the Zope3-users
mailing list