# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1233326118 -3600 # Fri Jan 30 15:35:18 2009 +0100 # Node ID a24796ae70e406694fae6207557757b9055ba784 # Parent 434e5a30b61aa97a0ae3fe36cad4ea0a0c6f6ec5 implement cell_call diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -233,10 +233,10 @@ target = 'subject' context = 'navcontentbottom' - def call(self, view=None, orderby='diem'): + def cell_call(self, row, col, view=None, orderby='diem'): req = self.req req.add_js( ('cubicweb.ajax.js', 'cubes.comment.js') ) - eid = self.rset[0][0] + eid = self.rset[row][col] self.w(u'<div id="%s" class="%s" cubicweb:rooteid="%s">' % ( self.div_id(), self.div_class(), eid)) action = self.vreg.select_action('reply_comment', req, self.rset, row=0)