__init__.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 1016 26387b836099
child 1263 01152fffd593
--- 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)