entities/adapters.py
changeset 5574 e082a57c2207
parent 5556 9ab2b4c74baf
child 5694 ce2c108a9595
--- 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