equal
deleted
inserted
replaced
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) |