Couldn't this be done by AppServer.__init__()?

Then require that all AppServer's must initialize the base class AppServer which they likely do anyway.
Is there any reason to have multiple AppServer's running? Would it make sense that WebKit.globalServer be a function that returns the server? Then if for any reason we end up with a more complex server referencing system accesses would at least be going through a function which could be modified to do the right thing.

-Stuart-



Chuck Esterbrook wrote:

In WebKit applications, as far as I can tell, there is no way to arbitrarily access the single instance of the app server (or the application).

I don't often need this, but once in awhile it would come in handy.

My plan is to require that all app servers set AppServer.globalServer for this purpose. Then any Python code could do this:

from WebKit.AppServer import globalServer
print globalServer
print globalServer.application()



Any comments before I implement this?

-Chuck


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel






-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to