web/views/basecontrollers.py
changeset 581 09f87f2c535e
parent 447 0e52d72104a6
child 603 18c6c31bbaf4
equal deleted inserted replaced
580:b453a6a1c3d1 581:09f87f2c535e
    58     id = 'view'
    58     id = 'view'
    59     template = 'main'
    59     template = 'main'
    60     
    60     
    61     def publish(self, rset=None):
    61     def publish(self, rset=None):
    62         """publish a request, returning an encoded string"""
    62         """publish a request, returning an encoded string"""
    63         self.req.update_search_state()
       
    64         template = self.req.property_value('ui.main-template')
    63         template = self.req.property_value('ui.main-template')
    65         if template not in self.vreg.registry('templates') :
    64         if template not in self.vreg.registry('templates') :
    66             template = self.template
    65             template = self.template
    67         return self.vreg.main_template(self.req, template, rset=rset)
    66         return self.vreg.main_template(self.req, template, rset=rset)
    68 
    67