[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PythonScripts/www/default_py Discourage the use of the upper-case RESPONSE attribute. The lower-case

Philipp von Weitershausen philikon at philikon.de
Wed Jul 25 18:46:45 EDT 2007


Log message for revision 78338:
  Discourage the use of the upper-case RESPONSE attribute. The lower-case
  response attribute works perfectly fine (and has for ages) and it has the
  advantage of being supported by Zope 3 as well.
  

Changed:
  U   Zope/trunk/lib/python/Products/PythonScripts/www/default_py

-=-
Modified: Zope/trunk/lib/python/Products/PythonScripts/www/default_py
===================================================================
--- Zope/trunk/lib/python/Products/PythonScripts/www/default_py	2007-07-25 22:26:53 UTC (rev 78337)
+++ Zope/trunk/lib/python/Products/PythonScripts/www/default_py	2007-07-25 22:46:45 UTC (rev 78338)
@@ -3,7 +3,7 @@
 # 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
+response =  request.response
 
 # Return a string identifying this script.
 print "This is the", script.meta_type, '"%s"' % script.getId(),



More information about the Zope-Checkins mailing list