web/request.py
changeset 4459 f628abfb3a6c
parent 4366 d51f28ba9399
parent 4454 aba1b563705b
child 4529 9b242051f46a
equal deleted inserted replaced
4458:6151849f41e0 4459:f628abfb3a6c
   750             return 'application/xhtml+xml'
   750             return 'application/xhtml+xml'
   751         return 'text/html'
   751         return 'text/html'
   752 
   752 
   753     def document_surrounding_div(self):
   753     def document_surrounding_div(self):
   754         if self.xhtml_browser():
   754         if self.xhtml_browser():
   755             return (u'<?xml version="1.0"?>\n' + STRICT_DOCTYPE +
   755             return (u'<?xml version="1.0"?>\n' + STRICT_DOCTYPE + # XXX encoding ?
   756                     u'<div xmlns="http://www.w3.org/1999/xhtml" xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">')
   756                     u'<div xmlns="http://www.w3.org/1999/xhtml" xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">')
   757         return u'<div>'
   757         return u'<div>'
   758 
   758 
   759 from cubicweb import set_log_methods
   759 from cubicweb import set_log_methods
   760 set_log_methods(CubicWebRequestBase, LOGGER)
   760 set_log_methods(CubicWebRequestBase, LOGGER)