entity.py
branchstable
changeset 3546 f0aecddf367e
parent 3316 c4c07aab1c39
child 3552 8facb3324170
--- a/entity.py	Thu Oct 01 16:06:29 2009 +0200
+++ b/entity.py	Fri Oct 02 08:57:07 2009 +0200
@@ -924,8 +924,12 @@
         :return: the list of indexable word of this entity
         """
         from indexer.query_objects import tokenize
+        # take care to cases where we're modyfying the schema
+        pending = self.req.transaction_data.setdefault('pendingrdefs', set())
         words = []
         for rschema in self.e_schema.indexable_attributes():
+            if (self.e_schema, rschema) in pending:
+                continue
             try:
                 value = self.printable_value(rschema, format='text/plain')
             except TransformError: