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
e08e0d33
Commit
e08e0d33
authored
Jun 30, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed manage_options structures to correct helpt topic references.
parent
0b1b17a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
lib/python/OFS/History.py
lib/python/OFS/History.py
+3
-3
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+14
-11
lib/python/ZClasses/ZClass.py
lib/python/ZClasses/ZClass.py
+1
-1
No files found.
lib/python/OFS/History.py
View file @
e08e0d33
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Object Histories"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
Globals
,
ndiff
,
ExtensionClass
from
DateTime
import
DateTime
...
...
@@ -163,7 +163,7 @@ class Historical(ExtensionClass.Base):
)
manage_options
=
({
'label'
:
'History'
,
'action'
:
'manage_change_history_page'
,
#'help':('OFSP','DTML-Method_Security.dtml
')
'help'
:(
'OFSP'
,
'History.stx
'
)
},
)
...
...
@@ -220,7 +220,7 @@ class Historical(ExtensionClass.Base):
_manage_historyComparePage
=
Globals
.
HTMLFile
(
'historyCompare'
,
globals
())
'historyCompare'
,
globals
()
,
management_view
=
'History'
)
def
manage_historyCompare
(
self
,
rev1
,
rev2
,
REQUEST
,
historyComparisonResults
=
''
):
dt1
=
DateTime
(
rev1
.
_p_mtime
)
...
...
lib/python/OFS/Image.py
View file @
e08e0d33
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Image object"""
__version__
=
'$Revision: 1.10
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.10
9
$'
[
11
:
-
2
]
import
Globals
,
string
,
struct
,
content_types
from
OFS.content_types
import
guess_content_type
...
...
@@ -450,16 +450,19 @@ class Image(File):
{
'id'
:
'width'
,
'type'
:
'string'
},
)
# Grrrrr, need to replace the view option.
manage_options
=
tuple
(
map
(
lambda
o
:
(
o
[
'label'
]
==
'View'
and
{
'label'
:
'View'
,
'action'
:
'view_image_or_file'
,
'help'
:(
'OFSP'
,
'Image_View.stx'
)}
or
o
)
,
File
.
manage_options
))
manage_options
=
(
(
{
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'help'
:(
'OFSP'
,
'Image_Edit.stx'
)},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
,
'help'
:(
'OFSP'
,
'File_Upload.stx'
)},
{
'label'
:
'View'
,
'action'
:
'view_image_or_file'
,
'help'
:(
'OFSP'
,
'Image_View.stx'
)}
)
+
PropertyManager
.
manage_options
+
Item_w__name__
.
manage_options
+
RoleManager
.
manage_options
)
manage_editForm
=
HTMLFile
(
'imageEdit'
,
globals
(),
Kind
=
'Image'
,
kind
=
'image'
)
view_image_or_file
=
HTMLFile
(
'imageView'
,
globals
())
...
...
lib/python/ZClasses/ZClass.py
View file @
e08e0d33
...
...
@@ -602,7 +602,7 @@ class ZObject:
'action'
:
'propertysheets/permissions/manage'
,
'help'
:(
'OFSP'
,
'ZClass_Permissions.stx'
)},
{
'label'
:
'Define Permissions'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'Security
-Define
Permissions.stx'
)},
'help'
:(
'OFSP'
,
'Security
_Define-
Permissions.stx'
)},
)
...
...
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