Back to index

plone3  3.1.7
bar.py
Go to the documentation of this file.
00001 ## Script (Python) "bar.py"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=
00008 ##title=Sample Script
00009 ##
00010 # Example code:
00011 
00012 # Import a standard function, and get the HTML request and response objects.
00013 from Products.PythonScripts.standard import html_quote
00014 request = container.REQUEST
00015 RESPONSE =  request.RESPONSE
00016 
00017 # Return a string identifying this script.
00018 print "This is the", script.meta_type, '"%s"' % script.getId(),
00019 if script.title:
00020     print "(%s)" % html_quote(script.title),
00021 print "in", container.absolute_url()
00022 return printed