web/views/basecontrollers.py
branchstable
changeset 5864 9b7c11e80d20
parent 5758 37968502da70
child 5868 c4380d8cfc25
equal deleted inserted replaced
5862:980db7f775e2 5864:9b7c11e80d20
   166         # update breadcrumps **before** validating cache, unless the view
   166         # update breadcrumps **before** validating cache, unless the view
   167         # specifies explicitly it should not be added to breadcrumb or the
   167         # specifies explicitly it should not be added to breadcrumb or the
   168         # view is a binary view
   168         # view is a binary view
   169         if view.add_to_breadcrumbs and not view.binary:
   169         if view.add_to_breadcrumbs and not view.binary:
   170             self._cw.update_breadcrumbs()
   170             self._cw.update_breadcrumbs()
   171 
       
   172     def validate_cache(self, view):
       
   173         view.set_http_cache_headers()
       
   174         self._cw.validate_cache()
       
   175 
   171 
   176     def execute_linkto(self, eid=None):
   172     def execute_linkto(self, eid=None):
   177         """XXX __linkto parameter may cause security issue
   173         """XXX __linkto parameter may cause security issue
   178 
   174 
   179         defined here since custom application controller inheriting from this
   175         defined here since custom application controller inheriting from this