more 3.6 api update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Jan 2010 16:07:54 +0100
changeset 4232 d9d031d68be2
parent 4231 d55cac808b08
child 4233 94ffaecd8e8c
more 3.6 api update
web/views/iprogress.py
web/views/primary.py
--- a/web/views/iprogress.py	Wed Jan 13 16:01:53 2010 +0100
+++ b/web/views/iprogress.py	Wed Jan 13 16:07:54 2010 +0100
@@ -184,7 +184,7 @@
 
     def cell_call(self, row, col):
         self._cw.add_css('cubicweb.iprogress.css')
-        self.req.add_js('cubicweb.iprogress.js')
+        self._cw.add_js('cubicweb.iprogress.js')
         entity = self.cw_rset.get_entity(row, col)
         widget = ProgressBarWidget(entity.done, entity.todo,
                                    entity.revised_cost)
--- a/web/views/primary.py	Wed Jan 13 16:01:53 2010 +0100
+++ b/web/views/primary.py	Wed Jan 13 16:07:54 2010 +0100
@@ -287,7 +287,7 @@
     __select__ = EntityView.__select__ & match_kwargs('rtype')
 
     def cell_call(self, row, col, rtype, **kwargs):
-        entity = self.rset.get_entity(row, col)
+        entity = self.cw_rset.get_entity(row, col)
         url = entity.printable_value(rtype)
         if url:
             self.w(u'<a href="%s">%s</a>' % (url, url))