Commit 57a998ef authored by Amos Latteier's avatar Amos Latteier

Added online help for Images and Files.

parent e9e63a38
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.92 $'[11:-2] __version__='$Revision: 1.93 $'[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
...@@ -134,11 +134,16 @@ class File(Persistent,Implicit,PropertyManager, ...@@ -134,11 +134,16 @@ class File(Persistent,Implicit,PropertyManager,
manage_uploadForm=HTMLFile('imageUpload',globals(),Kind='File',kind='file') manage_uploadForm=HTMLFile('imageUpload',globals(),Kind='File',kind='file')
manage=manage_main=manage_editForm manage=manage_main=manage_editForm
manage_options=({'label':'Edit', 'action':'manage_main'}, manage_options=({'label':'Edit', 'action':'manage_main',
{'label':'Upload', 'action':'manage_uploadForm'}, 'help':('OFSP','File_Edit.dtml')},
{'label':'Properties', 'action':'manage_propertiesForm'}, {'label':'Upload', 'action':'manage_uploadForm',
{'label':'View', 'action':''}, 'help':('OFSP','File_Upload.dtml')},
{'label':'Security', 'action':'manage_access'}, {'label':'Properties', 'action':'manage_propertiesForm',
'help':('OFSP','File_Properties.dtml')},
{'label':'View', 'action':'',
'help':('OFSP','File_View.dtml')},
{'label':'Security', 'action':'manage_access',
'help':('OFSP','File_Security.dtml')},
) )
__ac_permissions__=( __ac_permissions__=(
...@@ -362,7 +367,7 @@ class File(Persistent,Implicit,PropertyManager, ...@@ -362,7 +367,7 @@ class File(Persistent,Implicit,PropertyManager,
def __str__(self): return str(self.data) def __str__(self): return str(self.data)
def __len__(self): return 1 def __len__(self): return 1
manage_FTPget=index_html manage_FTPget=index_html
...@@ -406,11 +411,16 @@ class Image(File): ...@@ -406,11 +411,16 @@ class Image(File):
{'id':'width', 'type':'string'}, {'id':'width', 'type':'string'},
) )
manage_options=({'label':'Edit', 'action':'manage_main'}, manage_options=({'label':'Edit', 'action':'manage_main',
{'label':'Upload', 'action':'manage_uploadForm'}, 'help':('OFSP','Image_Edit.dtml')},
{'label':'Properties', 'action':'manage_propertiesForm'}, {'label':'Upload', 'action':'manage_uploadForm',
{'label':'View', 'action':'view_image_or_file'}, 'help':('OFSP','Image_Upload.dtml')},
{'label':'Security', 'action':'manage_access'}, {'label':'Properties', 'action':'manage_propertiesForm',
'help':('OFSP','Image_Properties.dtml')},
{'label':'View', 'action':'view_image_or_file',
'help':('OFSP','Image_View.dtml')},
{'label':'Security', 'action':'manage_access',
'help':('OFSP','Image_Security.dtml')},
) )
manage_editForm =HTMLFile('imageEdit',globals(),Kind='Image',kind='image') manage_editForm =HTMLFile('imageEdit',globals(),Kind='Image',kind='image')
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555"> <BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<H2>Add <dtml-var Kind></H2> <H2>Add <dtml-var Kind></H2>
<dtml-var "HelpSys.HelpButton(Kind + '_Add.dtml')">
<P> <P>
You can create a new <dtml-var kind> in the system using the form below. You can create a new <dtml-var kind> in the system using the form below.
Select an <dtml-var kind> from your local computer by clicking the Select an <dtml-var kind> from your local computer by clicking the
......
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