1.1 --- a/WebStack/Adapters/Zope.py Tue Sep 21 14:42:40 2004 +0000
1.2 +++ b/WebStack/Adapters/Zope.py Tue Sep 21 14:43:19 2004 +0000
1.3 @@ -9,30 +9,27 @@
1.4 from Globals import Persistent
1.5 from OFS.SimpleItem import Item
1.6 from AccessControl import ClassSecurityInfo
1.7 +import Acquisition
1.8 #from ZPublisher.HTTPResponse import status_reasons
1.9
1.10 -class WebStackAdapterProduct(Persistent, Item):
1.11 +class WebStackAdapterProduct(Persistent, Acquisition.Implicit, Item):
1.12
1.13 "A WebStack adapter product superclass."
1.14
1.15 - def __init__(self, id, resource, authenticator=None, permission=None):
1.16 + security = ClassSecurityInfo()
1.17 + security.declareObjectProtected("View")
1.18 + security.declareProtected("View", "index_html")
1.19 +
1.20 + def __init__(self, id, resource, authenticator=None):
1.21
1.22 """
1.23 Initialise with an 'id', a WebStack 'resource', and an optional
1.24 - 'authenticator'. The optional 'permission' is a Zope-related security
1.25 - identifier.
1.26 + 'authenticator'.
1.27 """
1.28
1.29 self.id = id
1.30 self.webstack_resource = resource
1.31 self.webstack_authenticator = authenticator
1.32 - self.security = ClassSecurityInfo()
1.33 -
1.34 - if authenticator is None:
1.35 - self.security.declarePublic("index_html")
1.36 - else:
1.37 - permission = permission or "View"
1.38 - self.security.declareProtected(permission, "index_html")
1.39
1.40 def __bobo_traverse__(self, request, entry_name):
1.41 if entry_name == "index_html":