equal
deleted
inserted
replaced
114 super(_CubicWebRequestBase, self).__init__(vreg) |
114 super(_CubicWebRequestBase, self).__init__(vreg) |
115 #: User interface property (see :ref:`uiprops`) |
115 #: User interface property (see :ref:`uiprops`) |
116 self.uiprops = None |
116 self.uiprops = None |
117 #: url for serving datadir (see :ref:`resources`) |
117 #: url for serving datadir (see :ref:`resources`) |
118 self.datadir_url = None |
118 self.datadir_url = None |
119 self.uiprops = vreg.config.uiprops |
119 # some config (i.e. "pyramid") do not have "uiprops" nor "datadir_url" |
120 self.datadir_url = vreg.config.datadir_url |
120 # attributes) |
|
121 self.uiprops = getattr(vreg.config, 'uiprops', None) |
|
122 self.datadir_url = getattr(vreg.config, 'datadir_url', None) |
121 #: enable UStringIO's write tracing |
123 #: enable UStringIO's write tracing |
122 self.tracehtml = False |
124 self.tracehtml = False |
123 if vreg.config.debugmode: |
125 if vreg.config.debugmode: |
124 self.tracehtml = bool(form.pop('_cwtracehtml', False)) |
126 self.tracehtml = bool(form.pop('_cwtracehtml', False)) |
125 #: raw html headers that can be added from any view |
127 #: raw html headers that can be added from any view |