[dataimport] since we have foreign key constraints in the database, 'entities' table should be updated first
--- 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