web/views/tableview.py
changeset 2677 8df54acd6613
parent 2650 18aec79ec3a3
child 2792 135580d15d42
child 3006 4d85386b06a5
equal deleted inserted replaced
2676:1282a15eb20f 2677:8df54acd6613
   141         elif displayfilter:
   141         elif displayfilter:
   142             req.add_css('cubicweb.facets.css')
   142             req.add_css('cubicweb.facets.css')
   143             actions += self.show_hide_actions(divid, True)
   143             actions += self.show_hide_actions(divid, True)
   144         self.w(u'<div id="%s"' % divid)
   144         self.w(u'<div id="%s"' % divid)
   145         if displayactions:
   145         if displayactions:
   146             for action in self.vreg.possible_actions(req, self.rset).get('mainactions', ()):
   146             for action in self.vreg['actions'].possible_actions(req, self.rset).get('mainactions', ()):
   147                 actions.append( (action.url(), req._(action.title), action.html_class(), None) )
   147                 actions.append( (action.url(), req._(action.title), action.html_class(), None) )
   148             self.w(u' cubicweb:displayactions="1">') # close <div tag
   148             self.w(u' cubicweb:displayactions="1">') # close <div tag
   149         else:
   149         else:
   150             self.w(u'>') # close <div tag
   150             self.w(u'>') # close <div tag
   151         # render actions menu
   151         # render actions menu