I was looking for a clean way to implement my own Session class.
It appears that this is passed into the constructor for Application()
however the specific Application is called for out of AppServer which is sub
classed by ThreadedAppServer.
So, my plan was to create:
class MyAppServer(ThreadedAppServer):
...
def createApplication(self):
return Application(server=self, sessionClass=MySessionClass)
It seems like the lower layers are pretty well designed with the idea of
supporting this kind of behavioral change through sub classing. It's just
that the ThreadedAppServer module didn't carry all of that through, and
seems to be designed a little more as a terminal class.
-Stuart-
> -----Original Message-----
> From: Ian Bicking [mailto:ianb@;colorstudy.com]
> Sent: Wednesday, November 13, 2002 3:01 PM
> To: Stuart Donaldson
> Cc: Webware "Discussion (E-mail)
> Subject: Re: [Webware-discuss] Developer access to WebKit module
>
>
> On Wed, 2002-11-13 at 16:41, Stuart Donaldson wrote:
> > It appears that with the MakeAppWorkDir utility, the idea
> is to support
> > users creating their own working directory.
> >
> > However, Launch.py tries to load ThreadedAppServer out of
> WebKit, and not
> > out of the users specified directory making it difficult
> for a user to
> > create their own AppServer. Furthermore, ThreadedAppServer
> is not easily
> > subclassed, without defining your own main and run functions.
> >
> > Is there any interest or reason to extend
> ThreadedAppServer.main and run
> > such that something which implements an AppServer interface
> can be passed in
> > as an argument?
>
> Well, so far I haven't really seen much of a need. Was there
> something
> specific you wanted to add to ThreadedAppServer?
>
> Ian
>
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about
your web server security? Click here for a FREE Thawte
Apache SSL Guide and answer your Apache SSL security
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss