Re: [Webware-devel] CVS UPDATE Re: Autoreload not working with CheetahTemplates

2002-10-27 Thread Edmund Lian
On 10/27/2002 09:54:02 PM webware-devel-admin wrote: >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. OK, I understand--just tried it,

Re: [Webware-devel] CVS UPDATE Re: Autoreload not working withCheetah Templates

2002-10-27 Thread Ian Bicking
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)

Re: [Webware-devel] CVS UPDATE Re: Autoreload not working with CheetahTemplates

2002-10-27 Thread Edmund Lian
On 10/27/2002 09:39:31 PM Ian wrote: >There's a fix in CVS -- you can now do: > >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 res

[Webware-devel] CVS UPDATE Re: Autoreload not working with CheetahTemplates

2002-10-27 Thread Ian Bicking
On Sun, 2002-10-27 at 17:51, Edmund Lian wrote: > FYI, an autoreload is not triggered if a .tmpl file is modified. In my > case, the following is true: > > 1. FAM is not installed so that polling is used > 2. The .tmpl file is instantiated within a servlet (containment-style use). > This means tha

[Webware-devel] Autoreload not working with Cheetah Templates

2002-10-27 Thread Edmund Lian
Hi Jason, You wrote: >The monitor knows about PSPs and Cheetah templates, and will monitor the >source file corresponding to the generated servlet or template file, >which is what you want. Note: I've only tested PSPs; please let me know >if Cheetah templates also work as expected. FYI, an auto

Re: [Webware-devel] Autoreload feature question

2002-10-27 Thread Jason Hildebrand
On Sun, 2002-10-27 at 02:14, Ian Bicking wrote: > > This idea occurred to me, too. The only drawback to this is that the > > PID change would change all the time, but maybe that's not a problem. > > But the PID of the AppServer script should remain, right? If you want > to stop the AppServer, c

Re: [Webware-devel] Autoreload feature question

2002-10-27 Thread Ian Bicking
On Sat, 2002-10-26 at 17:58, Jason Hildebrand wrote: > On Sat, 2002-10-26 at 17:37, Ian Bicking wrote: > > Just a quick thought -- it might be easier to put this into the > > AppServer script, and say if Launch.py exits with a certain error code > > it will restart the AppServer (instead of just ex