dataimport.py
branchstable
changeset 9425 d7e8293fa4de
parent 9181 2eac0aa1d3f6
child 9440 6880674c1a26
child 9522 8154a5748194
--- 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: