[Zope] how to call an external module from a Python script?

Dieter Maurer dieter@handshake.de
Sat, 22 Sep 2001 00:38:22 +0200 (CEST)


Reif Peter writes:
 > I defined an external method "build_adn" which I can call from a
 > DTML-document.
 > How do I call it from a Python script?
 > 
 > I tried e.g. "return build_adn (zone)", but it did not work.
There is no namespace magic active in Python Scripts.

  Try:

	return context.build_adn (zone)


Dieter