entity.py
branchstable
changeset 3546 f0aecddf367e
parent 3316 c4c07aab1c39
child 3552 8facb3324170
equal deleted inserted replaced
3544:188d86631c45 3546:f0aecddf367e
   922 
   922 
   923         :rtype: list
   923         :rtype: list
   924         :return: the list of indexable word of this entity
   924         :return: the list of indexable word of this entity
   925         """
   925         """
   926         from indexer.query_objects import tokenize
   926         from indexer.query_objects import tokenize
       
   927         # take care to cases where we're modyfying the schema
       
   928         pending = self.req.transaction_data.setdefault('pendingrdefs', set())
   927         words = []
   929         words = []
   928         for rschema in self.e_schema.indexable_attributes():
   930         for rschema in self.e_schema.indexable_attributes():
       
   931             if (self.e_schema, rschema) in pending:
       
   932                 continue
   929             try:
   933             try:
   930                 value = self.printable_value(rschema, format='text/plain')
   934                 value = self.printable_value(rschema, format='text/plain')
   931             except TransformError:
   935             except TransformError:
   932                 continue
   936                 continue
   933             except:
   937             except: