dataimport.py
changeset 9478 2d7521881d3d
parent 9463 d62e13eba033
parent 9440 6880674c1a26
child 9543 39f981482e34
--- a/dataimport.py	Fri Jan 24 10:04:56 2014 +0100
+++ b/dataimport.py	Mon Jan 27 16:19:49 2014 +0100
@@ -1063,7 +1063,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: