dataimport.py
changeset 9827 c7ce035aede8
parent 9770 112c884b2d8d
child 9898 70056633085c
child 10269 d5e298df98d1
--- 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: