equal
deleted
inserted
replaced
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): |