[Zope] Refreshing modules imported into external methods
Dieter Maurer
dieter at handshake.de
Sat Dec 13 14:43:22 EST 2003
Michael Hartl wrote at 2003-12-12 13:39 -0800:
>I'm having trouble getting Zope to refresh modules imported into my external
>methods.
Zope's "refresh" works only on products.
Your options:
* create a refreshing External Method that uses
Python's "reload" to reload modules or removes
the module from "sys.modules".
* move your modules into a Product and refresh this product
using Zope's "refresh".
In both cases, you will need to refresh your External Method
explicitly after you reloaded/refreshed your module
(by clicking its "Save" button).
--
Dieter
More information about the Zope
mailing list