web/views/basecontrollers.py
branchstable
changeset 6347 ef47a2100c66
parent 6302 ca5d09ff0379
child 6366 1806148d6ce8
equal deleted inserted replaced
6346:1a968e545e4e 6347:ef47a2100c66
   152             if rset:
   152             if rset:
   153                 req.set_message(req._("The view %s can not be applied to this query") % vid)
   153                 req.set_message(req._("The view %s can not be applied to this query") % vid)
   154             else:
   154             else:
   155                 req.set_message(req._("You have no access to this view or it can not "
   155                 req.set_message(req._("You have no access to this view or it can not "
   156                                       "be used to display the current data."))
   156                                       "be used to display the current data."))
   157             self.warning("the view %s can not be applied to this query", vid)
       
   158             vid = req.form.get('fallbackvid') or vid_from_rset(req, rset, req.vreg.schema)
   157             vid = req.form.get('fallbackvid') or vid_from_rset(req, rset, req.vreg.schema)
   159             view = req.vreg['views'].select(vid, req, rset=rset)
   158             view = req.vreg['views'].select(vid, req, rset=rset)
   160         return view, rset
   159         return view, rset
   161 
   160 
   162     def add_to_breadcrumbs(self, view):
   161     def add_to_breadcrumbs(self, view):