diff -r 544609e83317 -r 96752791c2b6 __init__.py --- a/__init__.py Mon Mar 23 17:38:30 2009 +0100 +++ b/__init__.py Mon Mar 23 17:55:59 2009 +0100 @@ -88,8 +88,8 @@ from cubicweb.rset import ResultSet rset = ResultSet([('A',)]*size, '%s X' % etype, description=[(etype,)]*size) - def get_entity(row, col=0, etype=etype, vreg=self.vreg, rset=rset): - return self.vreg.etype_class(etype)(self, rset, row, col) + def get_entity(row, col=0, etype=etype, req=self, rset=rset): + return req.vreg.etype_class(etype)(req, rset, row, col) rset.get_entity = get_entity return self.decorate_rset(rset)