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