Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
9abc9cc0
Commit
9abc9cc0
authored
Jan 29, 2002
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bogus security declarations on Script and PageTemplateFile
parent
c1fee57c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
lib/python/Products/PageTemplates/PageTemplateFile.py
lib/python/Products/PageTemplates/PageTemplateFile.py
+1
-4
lib/python/Shared/DC/Scripts/Script.py
lib/python/Shared/DC/Scripts/Script.py
+0
-1
No files found.
lib/python/Products/PageTemplates/PageTemplateFile.py
View file @
9abc9cc0
...
...
@@ -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__
)
lib/python/Shared/DC/Scripts/Script.py
View file @
9abc9cc0
...
...
@@ -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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment