Commit 629cbfee authored by Amos Latteier's avatar Amos Latteier

Added online help for DTML Documents and DTML Methods.

parent 07eb1db3
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""DTML Document objects.""" """DTML Document objects."""
__version__='$Revision: 1.31 $'[11:-2] __version__='$Revision: 1.32 $'[11:-2]
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, HTMLFile, MessageDialog
...@@ -107,12 +107,18 @@ class DTMLDocument(PropertyManager, DTMLMethod): ...@@ -107,12 +107,18 @@ class DTMLDocument(PropertyManager, DTMLMethod):
meta_type='DTML Document' meta_type='DTML Document'
icon ='p_/dtmldoc' icon ='p_/dtmldoc'
manage_options=({'label':'Edit', 'action':'manage_main'}, manage_options=({'label':'Edit', 'action':'manage_main',
{'label':'Upload', 'action':'manage_uploadForm'}, 'help':('OFSP','DTML-Document_Edit.dtml')},
{'label':'Properties', 'action':'manage_propertiesForm'}, {'label':'Upload', 'action':'manage_uploadForm',
{'label':'View', 'action':''}, 'help':('OFSP','DTML-Document_Upload.dtml')},
{'label':'Proxy', 'action':'manage_proxyForm'}, {'label':'Properties', 'action':'manage_propertiesForm',
{'label':'Security', 'action':'manage_access'}, 'help':('OFSP','DTML-Document_Properties.dtml')},
{'label':'View', 'action':'',
'help':('OFSP','DTML-Document_View.dtml')},
{'label':'Proxy', 'action':'manage_proxyForm',
'help':('OFSP','DTML-Document_Proxy.dtml')},
{'label':'Security', 'action':'manage_access',
'help':('OFSP','DTML-Document_Security.dtml')},
) )
__ac_permissions__=( __ac_permissions__=(
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""DTML Method objects.""" """DTML Method objects."""
__version__='$Revision: 1.36 $'[11:-2] __version__='$Revision: 1.37 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower from string import join,split,strip,rfind,atoi,lower
...@@ -114,12 +114,18 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager, ...@@ -114,12 +114,18 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
func_code.co_varnames='self','REQUEST','RESPONSE' func_code.co_varnames='self','REQUEST','RESPONSE'
func_code.co_argcount=3 func_code.co_argcount=3
manage_options=({'label':'Edit', 'action':'manage_main'}, manage_options=({'label':'Edit', 'action':'manage_main',
{'label':'Upload', 'action':'manage_uploadForm'}, 'help':('OFSP','DTML-Method_Edit.dtml')},
{'label':'View', 'action':''}, {'label':'Upload', 'action':'manage_uploadForm',
{'label':'Proxy', 'action':'manage_proxyForm'}, 'help':('OFSP','DTML-Method_Upload.dtml')},
{'label':'Security', 'action':'manage_access'}, {'label':'View', 'action':'',
'help':('OFSP','DTML-Method_View.dtml')},
{'label':'Proxy', 'action':'manage_proxyForm',
'help':('OFSP','DTML-Method_Proxy.dtml')},
{'label':'Security', 'action':'manage_access',
'help':('OFSP','DTML-Method_Security.dtml')},
) )
__ac_permissions__=( __ac_permissions__=(
('View management screens', ('View management screens',
('manage_editForm', 'manage', 'manage_main', 'manage_uploadForm', ('manage_editForm', 'manage', 'manage_main', 'manage_uploadForm',
......
...@@ -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 Document</H2> <H2>Add DTML Document</H2>
<dtml-var "HelpSys.HelpButton('DTML-Document_Add.dtml')">
<P> <P>
A DTML Document is used to hold text content. It can contain A DTML Document is used to hold text content. It can contain
HTML, XML, plain text, structured-text, etcetera. HTML, XML, plain text, structured-text, etcetera.
......
...@@ -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 Method</H2> <H2>Add DTML Method</H2>
<dtml-var "HelpSys.HelpButton('DTML-Method_Add.dtml')">
<P> <P>
A DTML Method is used to hold scripting tags and text content. A DTML Method is used to hold scripting tags and text content.
It can contain HTML, XML, plain text, structured-text, etcetera. It can contain HTML, XML, plain text, structured-text, etcetera.
......
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