E&S CVS Commit: PEAK - Added 'peak serve' and 'peak launch' commands, for running "CGI" apps in

pje at eby-sarna.com pje at eby-sarna.com
Mon Jan 26 15:58:00 EST 2004

Module Name:	PEAK
Committed By:	pje
Date:		Mon Jan 26 20:57:09 UTC 2004

Modified Files:
	PEAK/src/peak: peak.ini
Added Files:
	PEAK/src/peak/tools: local_server.py
	PEAK/src/peak/util: WSGIServer.py

Log Message:
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.)

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.125 -r1.126 PEAK/CHANGES.txt
cvs rdiff -r1.123 -r1.124 PEAK/src/peak/peak.ini
cvs rdiff -r0 -r1.1 PEAK/src/peak/tools/local_server.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/util/WSGIServer.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list