refactor to use the 3.6 API
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Mon, 01 Feb 2010 19:11:14 +0100
changeset 4419 1f777d13a76b
parent 4413 1b87d51f34d3
child 4427 410c99a917fa
refactor to use the 3.6 API
web/views/actions.py
--- a/web/views/actions.py	Fri Jan 29 21:07:37 2010 +0100
+++ b/web/views/actions.py	Mon Feb 01 19:11:14 2010 +0100
@@ -307,14 +307,14 @@
 
     @property
     def etype(self):
-        return self.rset.get_entity(0,0).name
+        return self.cw_rset.get_entity(0,0).name
 
     @property
     def title(self):
-        return self.req._('view all %s') % display_name(self.req, self.etype, 'plural').lower()
+        return self._cw.__('view all %s') % display_name(self._cw, self.etype, 'plural').lower()
 
     def url(self):
-        return self.build_url(self.etype)
+        return self._cw.build_url(self.etype)
 
 # logged user actions #########################################################