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=[]

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to