Commit 9abc9cc0 authored by Evan Simpson's avatar Evan Simpson

Fix bogus security declarations on Script and PageTemplateFile

parent c1fee57c
......@@ -15,7 +15,7 @@
Zope object encapsulating a Page Template from the filesystem.
"""
__version__='$Revision: 1.9 $'[11:-2]
__version__='$Revision: 1.10 $'[11:-2]
import os, AccessControl, Acquisition, sys
from Globals import package_home, DevelopmentMode
......@@ -43,8 +43,6 @@ class PageTemplateFile(Script, PageTemplate, Traversable):
_default_bindings = {'name_subpath': 'traverse_subpath'}
security = AccessControl.ClassSecurityInfo()
security.declareObjectProtected('View')
security.declareProtected('View', '__call__')
security.declareProtected('View management screens',
'read', 'document_src')
......@@ -134,4 +132,3 @@ class PageTemplateFile(Script, PageTemplate, Traversable):
def __setstate__(self, state):
raise StorageError, ("Instance of AntiPersistent class %s "
"cannot be stored." % self.__class__.__name__)
......@@ -41,7 +41,6 @@ class Script(SimpleItem, BindingsUI):
__ac_permissions__ = (
('View management screens', ('ZScriptHTML_tryForm',)),
('View', ('__call__','','ZPythonScriptHTML_tryAction')),
)
ZScriptHTML_tryForm = DTMLFile('dtml/scriptTry', globals())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment