[dataimport] Drop reference to the 'source' column (closes #4067694).
authorDamien Garaud <damien.garaud@logilab.fr>
Tue, 06 May 2014 18:32:03 +0200
changeset 9827 c7ce035aede8
parent 9820 3ad221fe04aa
child 9828 ad0d461ae18b
[dataimport] Drop reference to the 'source' column (closes #4067694). CW 3.19 drops the multi-source support. This column does not exist in 3.19.
dataimport.py
--- a/dataimport.py	Thu Apr 03 19:56:05 2014 +0200
+++ b/dataimport.py	Tue May 06 18:32:03 2014 +0200
@@ -1114,7 +1114,6 @@
     def _handle_insert_entity_sql(self, session, sql, attrs):
         # We have to overwrite the source given in parameters
         # as here, we directly use the system source
-        attrs['source'] = 'system'
         attrs['asource'] = self.system_source.uri
         self._append_to_entities(sql, attrs)
 
@@ -1137,7 +1136,7 @@
             assert isinstance(extid, str)
             extid = b64encode(extid)
         attrs = {'type': entity.cw_etype, 'eid': entity.eid, 'extid': extid,
-                 'source': 'system', 'asource': source.uri}
+                 'asource': source.uri}
         self._handle_insert_entity_sql(session, self.sqlgen.insert('entities', attrs), attrs)
         # insert core relations: is, is_instance_of and cw_source
         try: