[Zope] import from External Method

Dieter Maurer dieter@handshake.de
Wed, 31 Oct 2001 00:16:16 +0100 (CET)


Paul Winkler writes:
 > On Tue, Oct 30, 2001 at 08:02:01PM +0100, Marc O. Sandlus wrote:
 > > How do I tell Zope that a python-module which I import from a  Zope
 > > "External Method" has changed?
 > 
 > You could restart Zope. If that takes too long, maybe try this in your
 > external method:
 > 
 > import some_module
 > reload(some_module)
or in a different External Method, you can call when needed with
the module as parameter.

In any case, you must later press the "change" button in your
External Methods "edit" tab such that it sees the changed module.


Dieter