[Subversion] / PEAK / src / peak / util / WSGIServer.py |
No default branch
Bookmark a link to HEAD:
(view)
(download)
(as text)
Moved 'peak.util.WSGIServer' to 'wsgiref.simple_server'.
Update peak.util.WSGIServer to latest WSGI version, ditching the old IRerunnableCGI interface that it used. Add a new subclass to 'wsgiref.handlers', suitable for HTTP/1.0 origin servers like WSGIServer.
Port all of PEAK's internal and example apps from IRerunnableCGI to IWSGIApplication, and add a new 'WSGI' command wrapper that lets you run non-PEAK WSGI applications in PEAK's containers. For the time being, we're keeping IRerunnableCGI around, however, because it's a more natural interface for the CGI/FastCGI containers to use. See CHANGES.txt for more details on these issues. Also, fixed an issue with templates outputting Unicode instead of ASCII (which is all they really support at the moment.)
'SCRIPT_NAME' should be empty at site root.
Fix incorrect handling of numeric-only statuses.
Python 2.3, for no apparent reason, changed the behavior of BaseHTTPServer with respect to send_response()'s interpretation of 'code'. Fixed 'WSGIServer' for compatibility. (Problem reported by Wayne Larsen and Jon Watts.)
Added 'peak serve' and 'peak launch' commands, for running "CGI" apps in a browser from the local machine. For example, doing this:: PYTHONPATH=examples/trivial_cgi peak launch import:the_cgi.DemoCGI from the base directory of a PEAK CVS checkout or source distribution will launch the 'trivial_cgi' demo program in a new or current browser window. Any application runnable with 'peak CGI' should also be runnable with 'peak serve' or 'peak launch', which makes it very useful for running local browser-based apps or testing an application without CGI or FastCGI available. The modules that support this new functionality are 'peak.util.WSGIServer' (which implements a web server based on Python's 'BaseHTTPServer', that can run 'running.IRerunnableCGI' objects) and 'peak.tools.local_server' (which provides PEAK integration.)
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |