[fti] fix name conflict introduced by the new IFTIAdapter
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 May 2010 18:40:26 +0200
changeset 5574 e082a57c2207
parent 5573 8dfb1726526b
child 5575 8a531340c3ef
[fti] fix name conflict introduced by the new IFTIAdapter
entities/adapters.py
--- a/entities/adapters.py	Fri May 21 18:39:40 2010 +0200
+++ b/entities/adapters.py	Fri May 21 18:40:26 2010 +0200
@@ -131,11 +131,11 @@
                 words += tokenize(value)
         for rschema, role in entity.e_schema.fulltext_relations():
             if role == 'subject':
-                for entity in getattr(entity, rschema.type):
-                    words += entity.cw_adapt_to('IFTIndexable').get_words()
+                for entity_ in getattr(entity, rschema.type):
+                    words += entity_.cw_adapt_to('IFTIndexable').get_words()
             else: # if role == 'object':
-                for entity in getattr(entity, 'reverse_%s' % rschema.type):
-                    words += entity.cw_adapt_to('IFTIndexable').get_words()
+                for entity_ in getattr(entity, 'reverse_%s' % rschema.type):
+                    words += entity_.cw_adapt_to('IFTIndexable').get_words()
         return words