hooks/syncschema.py
changeset 5556 9ab2b4c74baf
parent 5426 0d4853a6e5ee
child 5558 afd1face1faf
--- a/hooks/syncschema.py	Thu May 20 20:47:13 2010 +0200
+++ b/hooks/syncschema.py	Thu May 20 20:47:55 2010 +0200
@@ -1175,7 +1175,7 @@
             still_fti = list(schema[etype].indexable_attributes())
             for entity in rset.entities():
                 source.fti_unindex_entity(session, entity.eid)
-                for container in entity.fti_containers():
+                for container in entity.cw_adapt_to('IFTIndexable').fti_containers():
                     if still_fti or container is not entity:
                         source.fti_unindex_entity(session, entity.eid)
                         source.fti_index_entity(session, container)