Testing self-written imported Modules in a Zope python external method
Max M
maxm at mxm.dk
Tue Jul 2 02:16:05 EDT 2002
Peter Schwalm wrote:
> I have a written a Python external script in Zope. It uses a small
> self-written helper module producing a page header. Naturally the
> first version of this module is not error free. During testing I
> discovered that Zope never refreshes the version of this imported
> module. Zope even doesn't care, if I delete the generated .pyd-File.
>
> Does this mean I always have to completely shutdown Zope if I want to
> test a new version of the module?
You are probably better of asking this on the zope at zope.org list.
You should just save your external script in the Zope management
interface every time you have changed it, then it will be updated in Zope.
Or you could start Zope with the -D option, then I believe it will
automatically update it.
If you are importing the module into the external script you will need
to "reload(external_module)"
Else you need to list some code of your external method.
regards Max M
More information about the Python-list
mailing list