E&S CVS Commit: PEAK - Further fleshed-out and documented CGI/FastCGI framework. Added

pje at eby-sarna.com pje at eby-sarna.com
Tue Apr 22 18:22:00 EDT 2003


Module Name:	PEAK
Committed By:	pje
Date:		Tue Apr 22 22:21:13 UTC 2003

Modified Files:
	PEAK/src/peak/running: commands.py
Added Files:
	PEAK/src/peak/running: zpublish.py

Log Message:
Further fleshed-out and documented CGI/FastCGI framework.  Added
"publication" base classes in 'peak.running.zpublish'.  This is now *very*
close to "Hello World" status; perhaps I can "smoke test" it tomorrow.  The
API footprint seems reasonable; a CGI/FastCGI script can be as simple as::

    from peak.running.commands import CGICommand
    from my.app import myAppClass

    myApp = myAppClass()

    sys.exit( CGICommand(app=myApp).run() )

Over time, the default publication base classes will get more complex, but
the above footprint should remain the same for apps that want to use the
standard publication (policy) classes.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/running/commands.py.diff?r1=1.4&r2=1.5
http://cvs.eby-sarna.com/PEAK/src/peak/running/zpublish.py?rev=1.1&content-type=text/vnd.viewcvs-markup

To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/running/commands.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/running/zpublish.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