[Zope-CVS] SVN: book/trunk/redirect/ Removed permission attribute,
since we can make the view always public.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Aug 23 18:20:56 EDT 2004
Log message for revision 27236:
Removed permission attribute, since we can make the view always public.
Changed:
U book/trunk/redirect/configure.zcml
U book/trunk/redirect/metaconfigure.py
U book/trunk/redirect/metadirectives.py
-=-
Modified: book/trunk/redirect/configure.zcml
===================================================================
--- book/trunk/redirect/configure.zcml 2004-08-23 21:09:18 UTC (rev 27235)
+++ book/trunk/redirect/configure.zcml 2004-08-23 22:20:56 UTC (rev 27236)
@@ -4,7 +4,6 @@
<redirect
name="manage.html"
for="zope.app.folder.interfaces.IFolder"
- url="manage"
- permission="zope.Public" />
+ url="manage" />
</configure>
Modified: book/trunk/redirect/metaconfigure.py
===================================================================
--- book/trunk/redirect/metaconfigure.py 2004-08-23 21:09:18 UTC (rev 27235)
+++ book/trunk/redirect/metaconfigure.py 2004-08-23 22:20:56 UTC (rev 27236)
@@ -25,10 +25,11 @@
self.request.response.redirect(self.url)
-def redirect(_context, name, url, permission, for_=None, layer='default'):
+def redirect(_context, name, url, for_=None, layer='default'):
# define the class that performs the redirect
redirectClass = type(str("Redirect %s for %s to '%s'" %(name, for_, url)),
(Redirect,), {'url' : url})
- page(_context, name, permission, for_, layer, class_=redirectClass)
+ page(_context, name, 'zope.Public', for_, layer, class_=redirectClass)
+
Modified: book/trunk/redirect/metadirectives.py
===================================================================
--- book/trunk/redirect/metadirectives.py 2004-08-23 21:09:18 UTC (rev 27235)
+++ book/trunk/redirect/metadirectives.py 2004-08-23 22:20:56 UTC (rev 27236)
@@ -17,7 +17,7 @@
"""
from zope.interface import Interface
from zope.configuration.fields import GlobalObject
-from zope.schema import Id, TextLine
+from zope.schema import TextLine
class IRedirectDirective(Interface):
"""Redirects clients to a specified URL."""
@@ -35,10 +35,6 @@
title=u"URL",
description=u"The URL the client should be redirected to.")
- permission = Id(
- title=u"Permission",
- description=u"The permission needed to access the view.")
-
layer = TextLine(
title=u"Layer",
description=u"The layer the redirect is defined in.",
More information about the Zope-CVS
mailing list