hooks/syncschema.py
changeset 5774 0d792bceb25d
parent 5558 afd1face1faf
parent 5772 4283ee58acaf
child 5811 e77cea9721e7
equal deleted inserted replaced
5768:1e73a466aa69 5774:0d792bceb25d
  1180             still_fti = list(schema[etype].indexable_attributes())
  1180             still_fti = list(schema[etype].indexable_attributes())
  1181             for entity in rset.entities():
  1181             for entity in rset.entities():
  1182                 source.fti_unindex_entity(session, entity.eid)
  1182                 source.fti_unindex_entity(session, entity.eid)
  1183                 for container in entity.cw_adapt_to('IFTIndexable').fti_containers():
  1183                 for container in entity.cw_adapt_to('IFTIndexable').fti_containers():
  1184                     if still_fti or container is not entity:
  1184                     if still_fti or container is not entity:
  1185                         source.fti_unindex_entity(session, entity.eid)
  1185                         source.fti_unindex_entity(session, container.eid)
  1186                         source.fti_index_entity(session, container)
  1186                         source.fti_index_entity(session, container)
  1187         if len(to_reindex):
  1187         if len(to_reindex):
  1188             # Transaction have already been committed
  1188             # Transaction have already been committed
  1189             session.pool.commit()
  1189             session.pool.commit()
  1190 
  1190