On Sun, 2002-10-27 at 20:49, Edmund Lian wrote:
> >from WebKit.ImportSpy import modloader
> >
> >modloader.watchFile(templateFilename)
> >
> >Then the AppServer is restarted if that file changes.  Configurable now
> >also uses this (so changing your Application.config will restart the
> >AppServer).
> 
> Isn't there a better way to do this? What I mean is that it would be much
> more convenient to be able to tell the modloader to watch all *.tmpl (or
> some other regexp defined) files within recursively defined range of
> directories than to have to modify every servlet to include the code
> snippet above.

Well, this at least adds the infrastructure.  If you want to monitor all
template files I think the best solution would be to add some code to
Template (or some local subclass) to do the modloader.watchFile.

  Ian




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to