remove 3.7 deprecation warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 May 2010 17:31:45 +0200
branchstable
changeset 5532 1fa6e09605a5
parent 5531 0ce62ac0d1d7
child 5533 5cb121d4f02f
remove 3.7 deprecation warning
rset.py
--- a/rset.py	Mon May 17 17:31:29 2010 +0200
+++ b/rset.py	Mon May 17 17:31:45 2010 +0200
@@ -475,7 +475,10 @@
                 if role == 'subject':
                     rschema = eschema.subjrels[attr]
                     if rschema.final:
-                        entity[attr] = rowvalues[outerselidx]
+                        if attr == 'eid':
+                            entity.eid = rowvalues[outerselidx]
+                        else:
+                            entity[attr] = rowvalues[outerselidx]
                         continue
                 else:
                     rschema = eschema.objrels[attr]