[PATCH/2] "reload extensions" command

Vladimir Prus ghost at cs.msu.su
Thu Jul 17 10:38:51 UTC 2003


Hello,
some time ago we've discussed "realod extension" command, which would reload 
all extension modules in QMTest, and will help in cases where I edit custom 
test class and don't want to restart entire QMTest GUI.

I think we've agreed such command will be usefully, so here's a patch. It's 
not 100% complete, because:

- it does not document the new command
- I could have missed something

I'd appreciate feedback on this patch, and if it's considered OK, I'll tweak 
documentation, too.

Changelog:
* qm/test/base.py
   (__loaded_extensions): New variable.
   (get_extension_class_from_directory): Update __loaded_extensions
   (reload_extension_module): New function.

* qm/test/share/dtml/navigation-bar.dtml
  (reload_extensions): New function

* qm/test/web/web.py
   (QMTestPage.__init__): Add "Reload extension" item to the "File" menu.
   (QMTestServer.__init__): Register "reload-extensions" script.
   (QMTestServer.HandleReloadExtensions): New method.

Patch attached.

TIA,
Volodya



-------------- next part --------------
A non-text attachment was scrubbed...
Name: reload_extensions.diff
Type: text/x-diff
Size: 4967 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20030717/93ca1982/attachment.diff>


More information about the qmtest mailing list