equal
deleted
inserted
replaced
57 self.w(u'</tbody>') |
57 self.w(u'</tbody>') |
58 self.w(u'</table>') |
58 self.w(u'</table>') |
59 |
59 |
60 def cell_call(self, row, col): |
60 def cell_call(self, row, col): |
61 _ = self.req._ |
61 _ = self.req._ |
62 entity = self.entity(row, col) |
62 entity = self.rset.get_entity(row, col) |
63 infos = {} |
63 infos = {} |
64 for col in self.columns: |
64 for col in self.columns: |
65 meth = getattr(self, 'build_%s_cell' % col, None) |
65 meth = getattr(self, 'build_%s_cell' % col, None) |
66 # find the build method or try to find matching attribute |
66 # find the build method or try to find matching attribute |
67 if meth: |
67 if meth: |
184 title = _('progress bar') |
184 title = _('progress bar') |
185 __select__ = implements(IProgress) |
185 __select__ = implements(IProgress) |
186 |
186 |
187 def cell_call(self, row, col): |
187 def cell_call(self, row, col): |
188 self.req.add_css('cubicweb.iprogress.css') |
188 self.req.add_css('cubicweb.iprogress.css') |
189 entity = self.entity(row, col) |
189 entity = self.rset.get_entity(row, col) |
190 widget = ProgressBarWidget(entity.done, entity.todo, |
190 widget = ProgressBarWidget(entity.done, entity.todo, |
191 entity.revised_cost) |
191 entity.revised_cost) |
192 self.w(widget.render()) |
192 self.w(widget.render()) |
193 |
193 |