[table view] vreg api update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 04 Aug 2009 17:00:14 +0200
changeset 2677 8df54acd6613
parent 2676 1282a15eb20f
child 2678 0308dc159b96
[table view] vreg api update
web/views/tableview.py
--- a/web/views/tableview.py	Tue Aug 04 15:30:54 2009 +0200
+++ b/web/views/tableview.py	Tue Aug 04 17:00:14 2009 +0200
@@ -143,7 +143,7 @@
             actions += self.show_hide_actions(divid, True)
         self.w(u'<div id="%s"' % divid)
         if displayactions:
-            for action in self.vreg.possible_actions(req, self.rset).get('mainactions', ()):
+            for action in self.vreg['actions'].possible_actions(req, self.rset).get('mainactions', ()):
                 actions.append( (action.url(), req._(action.title), action.html_class(), None) )
             self.w(u' cubicweb:displayactions="1">') # close <div tag
         else: