Hi,
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
/Example/Welcome".
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
production use.
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
plugIn.install()
File "WebKit/PlugIn.py", line 101, in install
self._module.InstallInWebKit(self._appServer)
File "PSP/__init__.py", line 10, in InstallInWebKit
File "Application.py", line 731, in addServletFactory
assert isinstance(factory, ServletFactory)
AssertionError
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:
http://www.post1.com/home/ngps/
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? ;-)
Cheers.
--
Ng Pheng Siong <[EMAIL PROTECTED]> * http://www.netmemetic.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss