equal
deleted
inserted
replaced
129 req.set_message(req._("The view %s can not be applied to this query") % vid) |
129 req.set_message(req._("The view %s can not be applied to this query") % vid) |
130 else: |
130 else: |
131 req.set_message(req._("You have no access to this view or it can not " |
131 req.set_message(req._("You have no access to this view or it can not " |
132 "be used to display the current data.")) |
132 "be used to display the current data.")) |
133 self.warning("the view %s can not be applied to this query", vid) |
133 self.warning("the view %s can not be applied to this query", vid) |
134 vid = vid_from_rset(req, rset, self.schema) |
134 vid = req.form.get('fallbackvid') or vid_from_rset(req, rset, self.schema) |
135 view = self.vreg['views'].select(vid, req, rset=rset) |
135 view = self.vreg['views'].select(vid, req, rset=rset) |
136 return view, rset |
136 return view, rset |
137 |
137 |
138 def add_to_breadcrumbs(self, view): |
138 def add_to_breadcrumbs(self, view): |
139 # update breadcrumps **before** validating cache, unless the view |
139 # update breadcrumps **before** validating cache, unless the view |