[Zope-Checkins] CVS: Zope2 - ExternalMethod.py:1.5
Amos Latteier
amos@digicool.com
Tue, 17 Apr 2001 19:29:56 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Products/ExternalMethod/help
In directory korak:/tmp/cvs-serv29065/ExternalMethod/help
Modified Files:
ExternalMethod.py
Log Message:
Many small structured text fixes, typos fixes, and small wording and formatting corrections. Some of these were pointed out by Tom Deprez.
--- Updated File ExternalMethod.py in package Zope2 --
--- ExternalMethod.py 2001/03/29 21:44:34 1.4
+++ ExternalMethod.py 2001/04/17 23:29:25 1.5
@@ -85,7 +85,7 @@
-def manage_addExternalMethod(self, id, title, module, function):
+def manage_addExternalMethod(id, title, module, function):
"""
Add an external method to an
'ObjectManager'.
@@ -93,22 +93,22 @@
In addition to the standard object-creation arguments,
'id' and title, the following arguments are defined:
- function -- The name of the python function. This can be a
- an ordinary Python function, or a bound method.
+ function -- The name of the python function. This can be a
+ an ordinary Python function, or a bound method.
- module -- The name of the file containing the function
- definition.
+ module -- The name of the file containing the function
+ definition.
- The module normally resides in the 'Extensions'
- directory, however, the file name may have a prefix of
- 'product.', indicating that it should be found in a product
- directory.
-
- For example, if the module is: 'ACMEWidgets.foo', then an
- attempt will first be made to use the file
- 'lib/python/Products/ACMEWidgets/Extensions/foo.py'. If this
- failes, then the file 'Extensions/ACMEWidgets.foo.py' will be
- used.
+ The module normally resides in the 'Extensions'
+ directory, however, the file name may have a prefix of
+ 'product.', indicating that it should be found in a product
+ directory.
+
+ For example, if the module is: 'ACMEWidgets.foo', then an
+ attempt will first be made to use the file
+ 'lib/python/Products/ACMEWidgets/Extensions/foo.py'. If this
+ failes, then the file 'Extensions/ACMEWidgets.foo.py' will be
+ used.
"""
@@ -124,8 +124,8 @@
'Extensions' subdirectory of a product directory.
Due to the way ExternalMethods are loaded, it is not *currently*
- possible to use Python modules that reside in the 'Extensions'
- directory. It is possible to load modules found in the
+ possible to import Python modules that reside in the 'Extensions'
+ directory. It is possible to import modules found in the
'lib/python' directory of the Zope installation, or in
packages that are in the 'lib/python' directory.
@@ -133,7 +133,7 @@
__constructor__=manage_addExternalMethod
- def manage_edit(self, title, module, function, REQUEST=None):
+ def manage_edit(title, module, function, REQUEST=None):
"""
Change the
External Method.
@@ -148,7 +148,7 @@
"""
- def __call__(self, *args, **kw):
+ def __call__(*args, **kw):
"""
Call the
@@ -164,9 +164,11 @@
- The supplied number of arguments is one less than the
required number of arguments, and
- - The name of the function\'s first argument is 'self'.
+ - The name of the function's first argument is 'self'.
In this case, the URL parent of the object is supplied as the
first argument.
"""
+
+