[Zope-Checkins] SVN: Zope/branches/zope33-port/lib/python/ZPublisher/HTTPRequest.py Add 'debug' property to request. This introduces a backward-incompatibility

Philipp von Weitershausen philikon at philikon.de
Thu Apr 27 17:47:38 EDT 2006


Log message for revision 67677:
  Add 'debug' property to request.  This introduces a backward-incompatibility
  as request.debug will now always point to the debug flags object.
  
  See http://mail.zope.org/pipermail/zope-dev/2006-April/027408.html for the
  discussion of this matter.
  

Changed:
  U   Zope/branches/zope33-port/lib/python/ZPublisher/HTTPRequest.py

-=-
Modified: Zope/branches/zope33-port/lib/python/ZPublisher/HTTPRequest.py
===================================================================
--- Zope/branches/zope33-port/lib/python/ZPublisher/HTTPRequest.py	2006-04-27 21:19:48 UTC (rev 67676)
+++ Zope/branches/zope33-port/lib/python/ZPublisher/HTTPRequest.py	2006-04-27 21:47:37 UTC (rev 67677)
@@ -25,6 +25,8 @@
 from maybe_lock import allocate_lock
 xmlrpc=None # Placeholder for module that we'll import if we have to.
 
+from zope.publisher.base import DebugFlags
+
 # This may get overwritten during configuration
 default_encoding = 'iso-8859-15'
 
@@ -256,7 +258,8 @@
         have_env=environ.has_key
         get_env=environ.get
         self.response=response
-        other=self.other={'RESPONSE': response}
+        other=self.other={'RESPONSE': response,
+                          'debug': DebugFlags()}
         self.form={}
         self.taintedform={}
         self.steps=[]



More information about the Zope-Checkins mailing list