[Zope] Newbie question: Directory for publishing Python modules?

jhauser@ifm.uni-kiel.de jhauser@ifm.uni-kiel.de
Tue, 17 Aug 1999 11:29:03 +0200 (CEST)


Such a search path is not present in this simple form. If you want to
use a function in a module you need to put the module into a directory
named 'Extensions' in the Zope-Root directory. Then go to the manage
page of your zope site at the appropriate folder and add an 'External
method'. In this form you are asked for the module and function
name. You can then call your method with the id you gave in this
form.

This method is actually called as a method of the folder from which
it's called. To integrate the method with zope more closely you can
give self as the first argument. self is than the folder instance.

(Not mentioning dtml-documents, which can also have methods, I think,
but not tried)

HTH and is not erroneous,

__Janko