# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1233060727 -3600 # Node ID 62968fa8845c88469822f4a036733eb9b4fd117d # Parent b32a5772ff0682e272592701d689bf4cba484fa1 yield self if no ft container found diff -r b32a5772ff06 -r 62968fa8845c common/entity.py --- a/common/entity.py Tue Jan 27 13:51:49 2009 +0100 +++ b/common/entity.py Tue Jan 27 13:52:07 2009 +0100 @@ -1002,6 +1002,7 @@ _done.add(self.eid) containers = tuple(self.e_schema.fulltext_containers()) if containers: + yielded = False for rschema, target in containers: if target == 'object': targets = getattr(self, rschema.type) @@ -1012,6 +1013,9 @@ continue for container in entity.fti_containers(_done): yield container + yielded = True + if not yielded: + yield self else: yield self