I couldn't resist: I've written a module named HttpAppServer that combines
Python's HTTP server and WebKit's AppServer in one process.
All tests under /Testing check out as described. I'm unsure about test #7's
wording, though, which says, "Display the file". When I click on it, it
displayed the rendered output, similar to tests #1-4 which say, "Show
HttpAppServer's goal is to make it easier to play with Webware: you don't
have to fiddle with Apache, Xitami, etc. It is certainly not meant for
I know of the following problems:
1. Application.py's line 731, "assert isinstance(factory, ServletFactory)",
fails for PSPExamples (but not those that came before):
$ python HttpAppServer.py
Loading plug-in: MiscUtils at /usr/local/home/ngps/pkg/webware061/MiscUtils
Loading plug-in: PSP at /usr/local/home/ngps/pkg/webware061/PSP
Loading context: PSPExamples at /usr/local/home/ngps/pkg/webware061/PSP/Examples
Traceback (most recent call last):
File "WebKit/AppServer.py", line 188, in loadPlugIn
File "WebKit/PlugIn.py", line 101, in install
File "PSP/__init__.py", line 10, in InstallInWebKit
File "Application.py", line 731, in addServletFactory
assert isinstance(factory, ServletFactory)
ERROR: Plug-in /usr/local/home/ngps/pkg/webware061/PSP raised exception.
Commenting out the assertion allows HttpAppServer.py to proceed.
2. PushServlet's output is buffered.
3. Shutdown works with IE (on Windows) but not with Netscape (Windows or
FreeBSD). I don't have another browser to test.
HttpAppServer.py can be found at my website:
This module is released under the same terms as Webware is.
Your feedback is welcome. (While you're at my website, please sign my
guestbook, ya? ;-)
Ng Pheng Siong <ngps@...> * http://www.netmemetic.com