server/sources/native.py
changeset 9664 5ef5494b6b0b
parent 9611 ca853478aaa8
child 9724 e45bf9baa7b7
child 9770 112c884b2d8d
--- a/server/sources/native.py	Fri Apr 04 12:39:59 2014 +0200
+++ b/server/sources/native.py	Fri Apr 04 12:46:35 2014 +0200
@@ -886,7 +886,7 @@
     _handle_insert_entity_sql = doexec
     _handle_is_instance_of_sql = _handle_source_relation_sql = _handle_is_relation_sql
 
-    def add_info(self, cnx, entity, source, extid, complete):
+    def add_info(self, cnx, entity, source, extid):
         """add type and source info for an eid into the system table"""
         with cnx.ensure_cnx_set:
             # begin by inserting eid/type/source/extid into the entities table
@@ -913,8 +913,6 @@
                                              (entity.eid, source.eid))
             # now we can update the full text index
             if self.do_fti and self.need_fti_indexation(entity.cw_etype):
-                if complete:
-                    entity.complete(entity.e_schema.indexable_attributes())
                 self.index_entity(cnx, entity=entity)
 
     def update_info(self, cnx, entity, need_fti_update):
@@ -1181,7 +1179,7 @@
         sql = self.sqlgen.insert(SQL_PREFIX + etype, action.changes)
         self.doexec(cnx, sql, action.changes)
         # restore record in entities (will update fti if needed)
-        self.add_info(cnx, entity, self, None, True)
+        self.add_info(cnx, entity, self, None)
         self.repo.hm.call_hooks('after_add_entity', cnx, entity=entity)
         return errors