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: CHANGES.txt
	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):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.125&r2=1.126
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.123&r2=1.124
http://cvs.eby-sarna.com/PEAK/src/peak/tools/local_server.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/PEAK/src/peak/util/WSGIServer.py?rev=1.1&content-type=text/vnd.viewcvs-markup

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