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
[EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to