I just needed to rebuild my computer (an XP machine) and in the process installed webware off of the CVS. I noticed that the autoreload function has changed from the last build, making it reload servlets less often then before. I personally found the frequent restarting helpful when I am developing a new application so I modified AutoReloadingAppServer.py to allow it to function as it did before. I added a new configuration setting in the Appserver file which allows me to turn on or off the new behavior, leaving it on by default. I'm submitting the two diff files for consideration, especially since i know that a new version is right around the corner
Jose
*** C:\Python23\Lib\site-packages\Webware\WebKit\Copy of AutoReloadingAppServer.py Wed May 26 00:47:21 2004 --- C:\Python23\Lib\site-packages\Webware\WebKit\AutoReloadingAppServer.py Tue Nov 23 14:42:23 2004 *************** *** 192,197 **** --- 192,198 ---- """ try: if mtime < getmtime(filename): + if not self.setting('OldReload'): for name, mod in sys.modules.items(): if getattr(mod, '__file__', None) == filename: break *************** *** 203,208 **** --- 204,211 ---- return 0 return 1 else: + return 1 + else: return 0 except OSError: return 1
*** C:\ww\Webware\WebKit\Configs\AppServer.config Tue May 25 23:56:20 2004 --- C:\Program Files\Apache Group\WK_main\Configs\AppServer.config Tue Nov 23 14:34:53 2004 *************** *** 9,11 **** --- 9,12 ---- MinServerThreads = 5 CheckInterval = 100 AutoReload = False + OldReload = False