--- 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