Commit cfa136b5 authored by Amos Latteier's avatar Amos Latteier

Added online help to External Methods.

parent 58539fea
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
This product provides support for external methods, which allow This product provides support for external methods, which allow
domain-specific customization of web environments. domain-specific customization of web environments.
""" """
__version__='$Revision: 1.35 $'[11:-2] __version__='$Revision: 1.36 $'[11:-2]
from Globals import Persistent, HTMLFile, MessageDialog, HTML from Globals import Persistent, HTMLFile, MessageDialog, HTML
import OFS.SimpleItem, Acquisition import OFS.SimpleItem, Acquisition
from string import split, join, find, lower from string import split, join, find, lower
...@@ -149,11 +149,15 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit, ...@@ -149,11 +149,15 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit,
func_code=None func_code=None
ZopeTime=Acquisition.Acquired ZopeTime=Acquisition.Acquired
HelpSys=Acquisition.Acquired
manage_options=( manage_options=(
{'label':'Properties', 'action':'manage_main'}, {'label':'Properties', 'action':'manage_main',
{'label':'Try It', 'action':''}, 'help':('ExternalMethod','External-Method_Properties.dtml')},
{'label':'Security', 'action':'manage_access'}, {'label':'Try It', 'action':'',
'help':('ExternalMethod','External-Method_Try-It.dtml')},
{'label':'Security', 'action':'manage_access',
'help':('ExternalMethod','External-Method_Security.dtml')},
) )
__ac_permissions__=( __ac_permissions__=(
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
<h2>Add External Method</h2> <h2>Add External Method</h2>
<dtml-var "HelpSys.HelpButton('External-Method_Add.dtml', 'ExternalMethod')">
<P> <P>
External Methods allow you to add functionality to Zope by writing Python External Methods allow you to add functionality to Zope by writing Python
functions which are exposed as callable Zope objects. functions which are exposed as callable Zope objects.
......
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