Yesterday, I retooled the admin pages so that they have a sidebar for
navigation. The sidebar also displays a list of all contexts and links to
the Webware and Python home pages.
I will create a similar sidebar for the example pages.
Today, I split AppServer into AppServer (abstract) and ThreadedAppServer. I
then created OneShotAppServer (subclass of AppServer) and tweaked
OneShotAdapter.py to use it.
The abstract AppServer class does things like:
- load, store and provide access to plugins
- create the application
- hold attributes like:
It's up to concrete subclasses to actually accept and handle requests.
Previously the OneShot adapter only loaded the application, not the app
server. This was a problem, because [a] plug-ins are loaded by the app
server and [b] the admin pages communicate with the app server. So these
were broke using OneShot. Now both of these problems are gone.
I updated the UNIX script AppServer and the Windows script AppServer.bat to
point to ThreadedAppServer.py. So like usual, on any platform, you can
simply type this to start the server:
> cd Webware/WebKit
Of course, I still use OneShot.cgi as my adapter during all my development,
and because we still don't have fault tolerance for the app server, I
currently deploy my clients' websites using this adapter. These websites
are currently in demo-mode, so performance is not an issue.
Also, I did a completely fresh check out and test on Windows.
You can sync with CVS (https://sourceforge.net/cvs/?group_id=4866) or grab
a fresh tar ball tomorrow