# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1232351854 -3600 # Node ID 3b3c2b6699fd5c788cda056e5a87a2b047f10fd8 # Parent 7cb7cb318983f61511821413f9377d5bdd754bad fix unittest_repository diff -r 7cb7cb318983 -r 3b3c2b6699fd common/entity.py --- a/common/entity.py Fri Jan 16 18:31:40 2009 +0100 +++ b/common/entity.py Mon Jan 19 08:57:34 2009 +0100 @@ -998,6 +998,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) @@ -1008,6 +1009,9 @@ continue for container in entity.fti_containers(_done): yield container + yielded = True + if not yielded: + yield self else: yield self