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
735105da
Commit
735105da
authored
Aug 28, 2016
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup manage_options.
parent
553f0b5d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
19 deletions
+4
-19
src/OFS/DTMLDocument.py
src/OFS/DTMLDocument.py
+1
-5
src/OFS/DTMLMethod.py
src/OFS/DTMLMethod.py
+0
-1
src/OFS/Folder.py
src/OFS/Folder.py
+0
-2
src/OFS/Image.py
src/OFS/Image.py
+2
-8
src/Products/PageTemplates/ZopePageTemplate.py
src/Products/PageTemplates/ZopePageTemplate.py
+1
-3
No files found.
src/OFS/DTMLDocument.py
View file @
735105da
...
...
@@ -38,11 +38,7 @@ class DTMLDocument(PropertyManager, DTMLMethod):
"""
meta_type
=
'DTML Document'
manage_options
=
(
DTMLMethod
.
manage_options
[:
2
]
+
PropertyManager
.
manage_options
+
DTMLMethod
.
manage_options
[
2
:]
)
manage_options
=
DTMLMethod
.
manage_options
# Replace change_dtml_methods by change_dtml_documents
__ac_permissions__
=
tuple
([
...
...
src/OFS/DTMLMethod.py
View file @
735105da
...
...
@@ -71,7 +71,6 @@ class DTMLMethod(RestrictedDTML,
manage_options
=
((
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'View'
,
'action'
:
''
},
{
'label'
:
'Proxy'
,
'action'
:
'manage_proxyForm'
},
)
+
RoleManager
.
manage_options
+
...
...
src/OFS/Folder.py
View file @
735105da
...
...
@@ -72,8 +72,6 @@ class Folder(
manage_options
=
(
ObjectManager
.
manage_options
+
({
'label'
:
'View'
,
'action'
:
''
},
)
+
PropertyManager
.
manage_options
+
RoleManager
.
manage_options
+
Item
.
manage_options
)
...
...
src/OFS/Image.py
View file @
735105da
...
...
@@ -119,11 +119,7 @@ class File(Persistent, Implicit, PropertyManager,
manage_uploadForm
=
manage_editForm
manage_options
=
(
(
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'View'
,
'action'
:
''
},
)
+
PropertyManager
.
manage_options
+
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
)
+
RoleManager
.
manage_options
+
Item_w__name__
.
manage_options
+
Cacheable
.
manage_options
...
...
@@ -811,9 +807,7 @@ class Image(File):
)
manage_options
=
(
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'View'
,
'action'
:
'view_image_or_file'
})
+
PropertyManager
.
manage_options
+
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
)
+
RoleManager
.
manage_options
+
Item_w__name__
.
manage_options
+
Cacheable
.
manage_options
...
...
src/Products/PageTemplates/ZopePageTemplate.py
View file @
735105da
...
...
@@ -89,9 +89,7 @@ class ZopePageTemplate(Script, PageTemplate, Cacheable,
manage_options
=
(
{
'label'
:
'Edit'
,
'action'
:
'pt_editForm'
},
{
'label'
:
'Test'
,
'action'
:
'ZScriptHTML_tryForm'
},
)
+
PropertyManager
.
manage_options
\
+
SimpleItem
.
manage_options
\
+
Cacheable
.
manage_options
)
+
SimpleItem
.
manage_options
+
Cacheable
.
manage_options
_properties
=
(
{
'id'
:
'title'
,
'type'
:
'ustring'
,
'mode'
:
'w'
},
...
...
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