dataimport.py
changeset 9750 566f8fce5168
parent 9635 aaf099172bb9
child 9770 112c884b2d8d
--- a/dataimport.py	Wed Apr 09 17:14:25 2014 +0200
+++ b/dataimport.py	Wed Apr 09 17:26:57 2014 +0200
@@ -620,11 +620,13 @@
         self.rql('SET X %s Y WHERE X eid %%(x)s, Y eid %%(y)s' % rtype,
                  {'x': int(eid_from), 'y': int(eid_to)})
 
+    @deprecated("[3.19] use session.find(*args, **kwargs).entities() instead")
     def find_entities(self, *args, **kwargs):
-        return self.session.find_entities(*args, **kwargs)
+        return self.session.find(*args, **kwargs).entities()
 
+    @deprecated("[3.19] use session.find(*args, **kwargs).one() instead")
     def find_one_entity(self, *args, **kwargs):
-        return self.session.find_one_entity(*args, **kwargs)
+        return self.session.find(*args, **kwargs).one()
 
 # the import controller ########################################################