Update of /cvsroot/webware/Webware/MiscUtils
In directory usw-pr-cvs1:/tmp/cvs-serv29453/MiscUtils
Modified Files:
Configurable.py
Log Message:
- ImportSpy.modloader now has to be explicitly activated
(with activate() method)
- External method: ImportSpy.modloader.watchFile(filename) --
filename is added to list of files that modloader is watching
(use for non-module files that your code depends on)
- Configurable class uses this new method to watch configuration
files.
Index: Configurable.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiscUtils/Configurable.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Configurable.py 20 Jun 2002 17:47:53 -0000 1.7
--- Configurable.py 28 Oct 2002 02:36:22 -0000 1.8
***************
*** 2,6 ****
from types import DictType
from MiscUtils import NoDefault
!
class ConfigurationError(Exception):
--- 2,6 ----
from types import DictType
from MiscUtils import NoDefault
! from WebKit.ImportSpy import modloader
class ConfigurationError(Exception):
***************
*** 96,99 ****
--- 96,100 ----
contents = file.read()
file.close()
+ modloader.watchFile(filename)
replacements = self.configReplacementValues()
if replacements:
|