Skip to content

Commit

Permalink
New Help Content files in STX format. They are compliant with the Help
Browse files Browse the repository at this point in the history
Content Style Guide.
  • Loading branch information
strichter committed Jun 16, 2000
1 parent bc85284 commit da6048c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions help/External-Method.stx
@@ -0,0 +1,25 @@
External Method

Description

External Methods allow you to add functionality to Zope by writing
Python functions which are exposed as callable Zope objects.

External Methods do not reside in the ZODB. They
reside in the Zope Extension directory, which is by default
'ZOPE2/Extensions'. Zope will find only the Python modules
that are in this directory. The Python module should also have
the ending '.py'.

How can an External Method be used? There are two common ways.

* HTML output - You can save all the HTML output of the method
into one string variable and return it at the end. You can
display the HTML using '<dtml-var ExtMethodName>'

* Variable output - You can simply return a variable, that
Zope uses later on, like a number.

See Also

"Using External Methods": http://www.zope.org/Documentation/How-To/ExternalMethods

0 comments on commit da6048c

Please sign in to comment.