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
a3c1daef
Commit
a3c1daef
authored
Jan 15, 2004
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Disentangle permission settings for related classes (merge from 2.6 / 2.7 audit).
parent
9c067031
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+5
-10
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+2
-1
No files found.
lib/python/OFS/DTMLDocument.py
View file @
a3c1daef
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""DTML Document objects."""
__version__
=
'$Revision: 1.5
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
from
ZPublisher.Converters
import
type_converters
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
...
...
@@ -46,15 +46,10 @@ class DTMLDocument(PropertyManager, DTMLMethod):
DTMLMethod
.
manage_options
[
2
:]
)
ps
=
DTMLMethod
.
__ac_permissions__
__ac_permissions__
=
(
(
'Change DTML Documents'
,
(
'manage_editForm'
,
'manage'
,
'manage_main'
,
'manage_edit'
,
'manage_upload'
,
'PUT'
,
'manage_historyCopy'
,
'manage_beforeHistoryCopy'
,
'manage_afterHistoryCopy'
,
)
),
)
ps
[
0
],
(
'Change DTML Documents'
,
ps
[
1
][
1
]),
ps
[
2
],
ps
[
3
],
ps
[
4
])
del
ps
def
manage_edit
(
self
,
data
,
title
,
SUBMIT
=
'Change'
,
dtpref_cols
=
'100%'
,
dtpref_rows
=
'20'
,
REQUEST
=
None
):
...
...
lib/python/OFS/DTMLMethod.py
View file @
a3c1daef
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.8
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
4
$'
[
11
:
-
2
]
import
History
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
...
...
@@ -73,6 +73,7 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
+
Cacheable
.
manage_options
)
# Careful in changes--used by DTMLDocument!
__ac_permissions__
=
(
(
'View management screens'
,
(
'document_src'
,
'PrincipiaSearchSource'
)),
...
...
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