# HG changeset patch # User Sylvain Thénault # Date 1435181447 -7200 # Node ID 9071db303c0c56cf2669a1dd3f6f5fe5d614b50f # Parent 1f5026e7d848ec6ec0c95cde6f321233d5bd5500 [dataimport] since we have foreign key constraints in the database, 'entities' table should be updated first diff -r 1f5026e7d848 -r 9071db303c0c dataimport/__init__.py --- a/dataimport/__init__.py Wed Jun 24 23:23:57 2015 +0200 +++ b/dataimport/__init__.py Wed Jun 24 23:30:47 2015 +0200 @@ -837,8 +837,8 @@ entity.cw_edited.update(kwargs, skipsec=False) entity_source, extid = self.metagen.init_entity(entity) cnx = self._cnx + self.source.add_info(cnx, entity, entity_source, extid) self.source.add_entity(cnx, entity) - self.source.add_info(cnx, entity, entity_source, extid) kwargs = dict() if inspect.getargspec(self.add_relation).keywords: kwargs['subjtype'] = entity.cw_etype