web/views/basetemplates.py
changeset 3655 af86ab65a282
parent 3503 06bced8edddf
child 3659 993997b4b41d
equal deleted inserted replaced
3654:e4bed64e0ad7 3655:af86ab65a282
   422     __regid__ = 'footer'
   422     __regid__ = 'footer'
   423 
   423 
   424     def call(self, **kwargs):
   424     def call(self, **kwargs):
   425         req = self._cw
   425         req = self._cw
   426         self.w(u'<div class="footer">')
   426         self.w(u'<div class="footer">')
   427         actions = self.vreg['actions'].possible_actions(self.req, rset=self.rset)
   427         actions = self._cw.vreg['actions'].possible_actions(self._cw,
       
   428                                                             rset=self.cw_rset)
   428         footeractions = actions.get('footer', ())
   429         footeractions = actions.get('footer', ())
   429         for i, action in enumerate(footeractions):
   430         for i, action in enumerate(footeractions):
   430             self.w(u'<a href="%s">%s</a>' % (action.url(),
   431             self.w(u'<a href="%s">%s</a>' % (action.url(),
   431                                              self.req._(action.title)))
   432                                              self._cw._(action.title)))
   432             if i < (len(footeractions) - 1):
   433             if i < (len(footeractions) - 1):
   433                 self.w(u' | ')
   434                 self.w(u' | ')
   434         self.w(u'</div>')
   435         self.w(u'</div>')
   435 
   436 
   436 
   437