web/views/basetemplates.py
changeset 3655 af86ab65a282
parent 3503 06bced8edddf
child 3659 993997b4b41d
--- a/web/views/basetemplates.py	Tue Oct 13 12:04:36 2009 +0200
+++ b/web/views/basetemplates.py	Tue Oct 13 15:59:05 2009 +0200
@@ -424,11 +424,12 @@
     def call(self, **kwargs):
         req = self._cw
         self.w(u'<div class="footer">')
-        actions = self.vreg['actions'].possible_actions(self.req, rset=self.rset)
+        actions = self._cw.vreg['actions'].possible_actions(self._cw,
+                                                            rset=self.cw_rset)
         footeractions = actions.get('footer', ())
         for i, action in enumerate(footeractions):
             self.w(u'<a href="%s">%s</a>' % (action.url(),
-                                             self.req._(action.title)))
+                                             self._cw._(action.title)))
             if i < (len(footeractions) - 1):
                 self.w(u' | ')
         self.w(u'</div>')