[dataimport] The subjtype should be the subject of a relation, not the object, closes #3365113 stable
authorVincent Michel <vincent.michel@logilab.fr>
Tue, 10 Dec 2013 11:44:06 +0000
branchstable
changeset 9425 d7e8293fa4de
parent 9424 5027afeb5739
child 9426 8e87f1e18a37
[dataimport] The subjtype should be the subject of a relation, not the object, closes #3365113
dataimport.py
--- a/dataimport.py	Wed Jan 15 14:21:47 2014 +0100
+++ b/dataimport.py	Tue Dec 10 11:44:06 2013 +0000
@@ -1058,7 +1058,7 @@
             if subjtype is None:
                 # Try to infer it
                 targets = [t.type for t in
-                           self.schema.rschema(rtype).targets()]
+                           self.schema.rschema(rtype).subjects()]
                 if len(targets) == 1:
                     subjtype = targets[0]
                 else: