give view when selecting actions
authorsylvain.thenault@logilab.fr
Mon, 06 Apr 2009 14:43:23 +0200
changeset 1247 3332c92d950c
parent 1245 298269ba818f
child 1248 4a8c5f8ddff5
give view when selecting actions
web/views/boxes.py
--- a/web/views/boxes.py	Mon Apr 06 10:08:35 2009 +0200
+++ b/web/views/boxes.py	Mon Apr 06 14:43:23 2009 +0200
@@ -31,7 +31,7 @@
     title = _('actions')
     order = 2
 
-    def call(self, **kwargs):
+    def call(self, view=None, **kwargs):
         _ = self.req._
         title = _(self.title)
         if self.rset:
@@ -42,7 +42,7 @@
                 title = u'%s - %s' % (title, etypelabel.lower())
         box = BoxWidget(title, self.id, _class="greyBoxFrame")
         # build list of actions
-        actions = self.vreg.possible_actions(self.req, self.rset)
+        actions = self.vreg.possible_actions(self.req, self.rset, view=view)
         add_menu = BoxMenu(_('add')) # 'addrelated' category
         other_menu = BoxMenu(_('more actions')) # 'moreactions' category
         searchstate = self.req.search_state[0]