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