web/views/basetemplates.py
changeset 8974 c8520188eb4b
parent 8706 e362054d9701
child 9176 8139f82c8bbe
equal deleted inserted replaced
8973:6711f78c18be 8974:c8520188eb4b
   106         view.set_request_content_type()
   106         view.set_request_content_type()
   107         view.set_stream()
   107         view.set_stream()
   108         if (('__notemplate' in self._cw.form)
   108         if (('__notemplate' in self._cw.form)
   109             and view.templatable
   109             and view.templatable
   110             and view.content_type == self._cw.html_content_type()):
   110             and view.content_type == self._cw.html_content_type()):
   111             view.w(self._cw.document_surrounding_div())
   111             view.w(u'<div>')
   112             view.render()
   112             view.render()
   113             view.w(u'</div>')
   113             view.w(u'</div>')
   114         else:
   114         else:
   115             view.render()
   115             view.render()
   116         # have to replace our stream by view's stream (which may be a binary
   116         # have to replace our stream by view's stream (which may be a binary