[dataimport] Correctly call rschema(rtype) in SqlGenObjectStore, closes #3694139 stable
authorVincent Michel <vincent.michel@logilab.fr>
Mon, 31 Mar 2014 11:18:44 +0000
branchstable
changeset 9597 8e9db17ce129
parent 9596 3000c57f1025
child 9598 7017188783d3
[dataimport] Correctly call rschema(rtype) in SqlGenObjectStore, closes #3694139
dataimport.py
--- a/dataimport.py	Fri Mar 28 17:13:38 2014 +0100
+++ b/dataimport.py	Mon Mar 31 11:18:44 2014 +0000
@@ -802,7 +802,7 @@
         assert not rtype.startswith('reverse_')
         self.add_relation(self.session, eid_from, rtype, eid_to,
                           self.rschema(rtype).inlined)
-        if self.rschema[rtype].symmetric:
+        if self.rschema(rtype).symmetric:
             self.add_relation(self.session, eid_to, rtype, eid_from,
                               self.rschema(rtype).inlined)
         self._nb_inserted_relations += 1
@@ -931,7 +931,7 @@
         # XXX Could subjtype be inferred ?
         self.source.add_relation(self.session, subj_eid, rtype, obj_eid,
                                  self.rschema(rtype).inlined, **kwargs)
-        if self.rschema[rtype].symmetric:
+        if self.rschema(rtype).symmetric:
             self.source.add_relation(self.session, obj_eid, rtype, subj_eid,
                                      self.rschema(rtype).inlined, **kwargs)