[Zope3-Users] Trying to use browser:form -> 404

Florian Lindner mailinglists at xgm.de
Fri Feb 10 09:20:52 EST 2006


Am Freitag, 10. Februar 2006 14:53 schrieb Lennart Regebro:
> On 2/10/06, Florian Lindner <mailinglists at xgm.de> wrote:
> > > Right, but when you try to display a page that uses a schema for an
> > > object that does not implement that schema, it tries to look up an
> > > adapter between the object and the schema. And if that fails, the page
> > > will not be displayed. I suspect that may be the reason. Try to not
> > > define the schema and see if the page shows up.
> >
> > I don't think that you're right...
>
> I think I am. :-)
>
> > Anyway, I tried it:
> > The schema is required, I can't leave it undefined. I've changed it to:
>
> Right, of course, it's a form...
> If you try browser:page instead of browser:form, does it work then?

Other pages in the same configure.zcml like:

    <page
        name="loginForm.html"
        permission="zope.Public"
        layer="centershock"
        template="loginForm.pt" 
        for="*"/>

or

    <page
        name="toHomeFolder"
        for="*"
        permission="CS.View"
        class=".views.toHomeFolder"
        layer="centershock"
        menu="CSnavMenu"
        title="home folder" />


are working. Just changing form to page gives an Unrecognized parameters error 
of course.

Regards,

Florian


More information about the Zope3-users mailing list