web/request.py
changeset 10090 0aebb1c0f849
parent 10080 bc7c3b0f439b
child 10094 954765f57fb6
equal deleted inserted replaced
10089:6346f53c85f1 10090:0aebb1c0f849
   126             self.uiprops = vreg.config.uiprops
   126             self.uiprops = vreg.config.uiprops
   127         if https and vreg.config.https_datadir_url is not None:
   127         if https and vreg.config.https_datadir_url is not None:
   128             self.datadir_url = vreg.config.https_datadir_url
   128             self.datadir_url = vreg.config.https_datadir_url
   129         else:
   129         else:
   130             self.datadir_url = vreg.config.datadir_url
   130             self.datadir_url = vreg.config.datadir_url
       
   131         #: enable UStringIO's write tracing
       
   132         self.tracehtml = False
       
   133         if vreg.config.debugmode:
       
   134             self.tracehtml = bool(form.pop('_cwtracehtml', False))
   131         #: raw html headers that can be added from any view
   135         #: raw html headers that can be added from any view
   132         self.html_headers = HTMLHead(self)
   136         self.html_headers = HTMLHead(self, tracewrites=self.tracehtml)
   133         #: received headers
   137         #: received headers
   134         self._headers_in = Headers()
   138         self._headers_in = Headers()
   135         if headers is not None:
   139         if headers is not None:
   136             for k, v in headers.iteritems():
   140             for k, v in headers.iteritems():
   137                 self._headers_in.addRawHeader(k, v)
   141                 self._headers_in.addRawHeader(k, v)