web/views/basecomponents.py
changeset 2650 18aec79ec3a3
parent 2476 1294a6bdf3bf
child 2799 b703639614e7
child 2937 36b11249014e
child 2996 866a2c135c33
equal deleted inserted replaced
2649:5d4a943695d1 2650:18aec79ec3a3
    88     id = 'loggeduserlink'
    88     id = 'loggeduserlink'
    89 
    89 
    90     def call(self):
    90     def call(self):
    91         if not self.req.cnx.anonymous_connection:
    91         if not self.req.cnx.anonymous_connection:
    92             # display useractions and siteactions
    92             # display useractions and siteactions
    93             actions = self.vreg.possible_actions(self.req, self.rset)
    93             actions = self.vreg['actions'].possible_actions(self.req, rset=self.rset)
    94             box = MenuWidget('', 'userActionsBox', _class='', islist=False)
    94             box = MenuWidget('', 'userActionsBox', _class='', islist=False)
    95             menu = PopupBoxMenu(self.req.user.login, isitem=False)
    95             menu = PopupBoxMenu(self.req.user.login, isitem=False)
    96             box.append(menu)
    96             box.append(menu)
    97             for action in actions.get('useractions', ()):
    97             for action in actions.get('useractions', ()):
    98                 menu.append(BoxLink(action.url(), self.req._(action.title),
    98                 menu.append(BoxLink(action.url(), self.req._(action.title),