--- 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))