web/request.py
branchstable
changeset 9138 bc6e25dbfd04
parent 8974 c8520188eb4b
child 9229 739ae5366bed
equal deleted inserted replaced
9137:c791d8fddc15 9138:bc6e25dbfd04
   920         :param doctype: the new doctype, e.g. '<!DOCTYPE html>'
   920         :param doctype: the new doctype, e.g. '<!DOCTYPE html>'
   921         """
   921         """
   922         if reset_xmldecl is not None:
   922         if reset_xmldecl is not None:
   923             warn('[3.17] reset_xmldecl is deprecated as we only serve html',
   923             warn('[3.17] reset_xmldecl is deprecated as we only serve html',
   924                  DeprecationWarning, stacklevel=2)
   924                  DeprecationWarning, stacklevel=2)
   925         self.main_stream.set_doctype(doctype, reset_xmldecl)
   925         self.main_stream.set_doctype(doctype)
   926 
   926 
   927     # page data management ####################################################
   927     # page data management ####################################################
   928 
   928 
   929     def get_page_data(self, key, default=None):
   929     def get_page_data(self, key, default=None):
   930         """return value associated to `key` in current page data"""
   930         """return value associated to `key` in current page data"""