[Zope3-dev] Login despite zope.Public
Florian Lindner
mailinglists at xgm.de
Wed Oct 13 04:28:24 EDT 2004
Hello,
I've registered a view:
<configure xmlns="http://namespaces.zope.org/browser">
<defaultView
for="..interfaces.IEvent"
name="main.html"
/>
<page
for="..interfaces.IEvent"
name="main.html"
permission="zope.Public"
layer="centershock"
template="main.pt" />
</configure>
Works perfect despite the fact that I need to log in in order to see it.
I go to
http://localhost:8080/++skin++centershock/objname/@@main.html Or
http://localhost:8080/++skin++centershock/objname/
At both sites I need to log in. If I cancel the login prompt I see only
the plain stand_macros/page macro without any of the slots filled. The
standard_macros is in a different directory and registered like that:
<configure xmlns="http://namespaces.zope.org/browser">
<layer name="centershock"/>
<skin name="centershock" layers="centershock rotterdam default" />
<resource name="styles.css" file="styles.css" layer="centershock" />
<page
for="*"
name="standard_macros"
permission="zope.Public"
class=".standardmacros.StandardMacros"
layer="centershock"
allowed_interface="zope.interface.common.mapping.IItemMapping"
/>
<page
for="*"
name="skin_macros"
permission="zope.Public"
layer="centershock"
template="template.pt"
/>
</configure>
Why do I need to log in?
One more question:
What permission has precedence? The permission used while registering
the view (for interfaces.IEvent) or the one for the template (name=
skin_macros) or the one of the class=.standardmacros.StandardMacros??
Thx,
Florian
More information about the Zope3-dev
mailing list