[dataimport] fix pylint detected error in SQLGenObjectStore

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changeset534efa7bfaeb
branchdefault
phasepublic
hiddenno
parent revision#89a9c5c8f7f4 Added tag cubicweb-version-3.20.4, cubicweb-debian-version-3.20.4-1, cubicweb-centos-version-3.20.4-1 for changeset 49831fdc84dc
child revision#c3a1ca4c229f [pkg] do not import the __pkginfo__.py module to make cubes installable via setuptools, #c91fd5f37327 [hooks] add a looping task that dumps the stats regularly in a file, #a0f1697e5e56 [native source] log the used connection in doexecmany as in doexec, #eacb8ea38bf5 [devtools] add a method on CubicWebTC to fake data posted by standard cw forms. Closes #4985805, #1bc2e5285992 [i18n generation] add missing 'add a EntityType' message to generated catalogs. Closes #5012581, #b70b6a78c92d [i18n generation] add missing 'add a EntityType' message to generated catalogs. Closes #5012581, #077add799cc7 [pkg] do not import the __pkginfo__.py module to make cubes installable via setuptools, #0e0f9af55cf8 [hooks/syncschema] use a list instead of a set for UpdateFTIndexOp, #cb00a405d55b [entity/req] pass the _cw object to cw_instantiate, #218c28bff695 Steal schema2sql module from yams
files modified by this revision
dataimport.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1423161409 -3600
# Thu Feb 05 19:36:49 2015 +0100
# Node ID 534efa7bfaebde4f037117c11f4cd6ed7bc7e8cc
# Parent 89a9c5c8f7f4dabf587046bdcd6d833a9d2e0a28
[dataimport] fix pylint detected error in SQLGenObjectStore

diff --git a/dataimport.py b/dataimport.py
@@ -1153,8 +1153,6 @@
1          if 'CWSource' in self.schema and source.eid is not None: # else, cw < 3.10
2              self._handle_is_relation_sql(cnx, 'INSERT INTO cw_source_relation(eid_from,eid_to) VALUES (%s,%s)',
3                                           (entity.eid, source.eid))
4          # now we can update the full text index
5          if self.do_fti and self.need_fti_indexation(entity.cw_etype):
6 -            if complete:
7 -                entity.complete(entity.e_schema.indexable_attributes())
8              self.index_entity(cnx, entity=entity)