Commit e08e0d33 authored by Amos Latteier's avatar Amos Latteier

Changed manage_options structures to correct helpt topic references.

parent 0b1b17a6
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Object Histories""" """Object Histories"""
__version__='$Revision: 1.2 $'[11:-2] __version__='$Revision: 1.3 $'[11:-2]
import Globals, ndiff, ExtensionClass import Globals, ndiff, ExtensionClass
from DateTime import DateTime from DateTime import DateTime
...@@ -163,7 +163,7 @@ class Historical(ExtensionClass.Base): ...@@ -163,7 +163,7 @@ class Historical(ExtensionClass.Base):
) )
manage_options=({'label':'History', 'action':'manage_change_history_page', 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): ...@@ -220,7 +220,7 @@ class Historical(ExtensionClass.Base):
_manage_historyComparePage=Globals.HTMLFile( _manage_historyComparePage=Globals.HTMLFile(
'historyCompare', globals()) 'historyCompare', globals(), management_view='History')
def manage_historyCompare(self, rev1, rev2, REQUEST, def manage_historyCompare(self, rev1, rev2, REQUEST,
historyComparisonResults=''): historyComparisonResults=''):
dt1=DateTime(rev1._p_mtime) dt1=DateTime(rev1._p_mtime)
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.108 $'[11:-2] __version__='$Revision: 1.109 $'[11:-2]
import Globals, string, struct, content_types import Globals, string, struct, content_types
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
...@@ -450,16 +450,19 @@ class Image(File): ...@@ -450,16 +450,19 @@ class Image(File):
{'id':'width', 'type':'string'}, {'id':'width', 'type':'string'},
) )
# Grrrrr, need to replace the view option. manage_options=(
manage_options=tuple(map( (
lambda o: {'label':'Edit', 'action':'manage_main',
(o['label']=='View' 'help':('OFSP','Image_Edit.stx')},
and {'label':'Upload', 'action':'manage_uploadForm',
{'label':'View', 'action':'view_image_or_file', 'help':('OFSP','File_Upload.stx')},
'help':('OFSP','Image_View.stx')} {'label':'View', 'action':'view_image_or_file',
or o) 'help':('OFSP','Image_View.stx')}
, File.manage_options)) )
+PropertyManager.manage_options
+Item_w__name__.manage_options
+RoleManager.manage_options
)
manage_editForm =HTMLFile('imageEdit',globals(),Kind='Image',kind='image') manage_editForm =HTMLFile('imageEdit',globals(),Kind='Image',kind='image')
view_image_or_file =HTMLFile('imageView',globals()) view_image_or_file =HTMLFile('imageView',globals())
......
...@@ -602,7 +602,7 @@ class ZObject: ...@@ -602,7 +602,7 @@ class ZObject:
'action' :'propertysheets/permissions/manage', 'action' :'propertysheets/permissions/manage',
'help':('OFSP','ZClass_Permissions.stx')}, 'help':('OFSP','ZClass_Permissions.stx')},
{'label': 'Define Permissions', 'action' :'manage_access', {'label': 'Define Permissions', 'action' :'manage_access',
'help':('OFSP','Security-DefinePermissions.stx')}, 'help':('OFSP','Security_Define-Permissions.stx')},
) )
......
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