From: Jason H. <ja...@pe...> - 2002-11-20 16:33:37
|
On Tue, 2002-11-19 at 09:32, Stuart Donaldson wrote: > On this topic, I think some minor changes to the run and main > functions within ThreadedAppServer.py will make it very easy > to subclass ThreadedAppServer. Furthermore, if these methods > (in particular 'run') were placed on the abstract baseclass > AppServer, you would have a very clean model for subclassing > and starting an appserver. Create an instance of the specified > AppServer, and then call the run method. This sounds good to me. If we can also manage to get main() into the class (instead of being a separate function) it would be even better: Currently, if you do Launch.py ThreadedAppServer it imports the WebKit packages, and looks there for ThreadedAppServer. With small changes, we could teach it to handle something like Launch.py Lib.CustomAppServer which would import the Lib package (assuming it's in your PYTHONPATH), and import the CustomAppServer module from there. If no package is specified we can default to WebKit to preserve backwards-compatibility. -- Jason D. Hildebrand ja...@pe... |