[Zope-CVS] CVS: Packages/pcgi/Example - pcgitest:1.1 pcgitime.py:1.1

Fred L. Drake, Jr. fred@zope.com
Thu, 20 Mar 2003 15:39:56 -0500

Update of /cvs-repository/Packages/pcgi/Example
In directory cvs.zope.org:/tmp/cvs-serv8256/Example

Added Files:
	pcgitest pcgitime.py 
Log Message:
Make the PCGI support code available via CVS without having to maintain and
distribute it as part of the Zope application server.  The appserver still
contains the necessary support to allow a PCGI-capable web server to talk
to it.

=== Added File Packages/pcgi/Example/pcgitest ===

# example pcgi info file - JeffBauer@bigfoot.com
# substitute 'BogusDirectory' with appropriate path
# and subsitute the correct path to your Python binary
# for PCGI_EXE.
# To invoke from browser:  http://.../cgi-bin/pcgitest/getTime


=== Added File Packages/pcgi/Example/pcgitime.py ===
# pcgitime.py - example pcgi script - JeffBauer@bigfoot.com

from time import asctime, localtime, time

beginTime = "<html><pre>time started: %s" % asctime(localtime(time()))

def getTime(arg=None):
    """It's later than you think (don't remove this docstring)"""
    return "%s\ncurrent time: %s" % (beginTime, asctime(localtime(time())))