[Zope-Checkins] CVS: Zope2 - default.py:1.1.2.1
evan@serenade.digicool.com
evan@serenade.digicool.com
Mon, 12 Mar 2001 20:43:36 -0500
Update of /cvs-repository/Zope2/lib/python/Products/PythonScripts/www
In directory serenade:/slab/home/evan/Zope/psfix/lib/python/Products/PythonScripts/www
Added Files:
Tag: evan-script_fix-branch
default.py
Log Message:
Added default content to Scripts, for demonstration purposes.
--- Added File default.py in package Zope2 ---
# Example code:
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE = request.RESPONSE
# Return a string identifying this script.
print "This is the", script.meta_type, '"%s"' % script.getId(),
if script.title:
print "(%s)" % html_quote(script.title),
print "in", container.absolute_url()
return printed