dataimport.py
changeset 9750 566f8fce5168
parent 9635 aaf099172bb9
child 9770 112c884b2d8d
equal deleted inserted replaced
9749:dbaf79418b8f 9750:566f8fce5168
   618         eid_from, rtype, eid_to = super(RQLObjectStore, self).relate(
   618         eid_from, rtype, eid_to = super(RQLObjectStore, self).relate(
   619             eid_from, rtype, eid_to, **kwargs)
   619             eid_from, rtype, eid_to, **kwargs)
   620         self.rql('SET X %s Y WHERE X eid %%(x)s, Y eid %%(y)s' % rtype,
   620         self.rql('SET X %s Y WHERE X eid %%(x)s, Y eid %%(y)s' % rtype,
   621                  {'x': int(eid_from), 'y': int(eid_to)})
   621                  {'x': int(eid_from), 'y': int(eid_to)})
   622 
   622 
       
   623     @deprecated("[3.19] use session.find(*args, **kwargs).entities() instead")
   623     def find_entities(self, *args, **kwargs):
   624     def find_entities(self, *args, **kwargs):
   624         return self.session.find_entities(*args, **kwargs)
   625         return self.session.find(*args, **kwargs).entities()
   625 
   626 
       
   627     @deprecated("[3.19] use session.find(*args, **kwargs).one() instead")
   626     def find_one_entity(self, *args, **kwargs):
   628     def find_one_entity(self, *args, **kwargs):
   627         return self.session.find_one_entity(*args, **kwargs)
   629         return self.session.find(*args, **kwargs).one()
   628 
   630 
   629 # the import controller ########################################################
   631 # the import controller ########################################################
   630 
   632 
   631 class CWImportController(object):
   633 class CWImportController(object):
   632     """Controller of the data import process.
   634     """Controller of the data import process.