web/request.py
branchstable
changeset 4454 aba1b563705b
parent 4212 ab6573088b4a
child 4459 f628abfb3a6c
equal deleted inserted replaced
4453:b8df4eaffd47 4454:aba1b563705b
   742             return 'application/xhtml+xml'
   742             return 'application/xhtml+xml'
   743         return 'text/html'
   743         return 'text/html'
   744 
   744 
   745     def document_surrounding_div(self):
   745     def document_surrounding_div(self):
   746         if self.xhtml_browser():
   746         if self.xhtml_browser():
   747             return (u'<?xml version="1.0"?>\n' + STRICT_DOCTYPE +
   747             return (u'<?xml version="1.0"?>\n' + STRICT_DOCTYPE + # XXX encoding ?
   748                     u'<div xmlns="http://www.w3.org/1999/xhtml" xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">')
   748                     u'<div xmlns="http://www.w3.org/1999/xhtml" xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">')
   749         return u'<div>'
   749         return u'<div>'
   750 
   750 
   751 from cubicweb import set_log_methods
   751 from cubicweb import set_log_methods
   752 set_log_methods(CubicWebRequestBase, LOGGER)
   752 set_log_methods(CubicWebRequestBase, LOGGER)