entity.py
changeset 4831 c5aec27c1bf7
parent 4806 4f12f59b1a13
child 4835 13b0b96d7982
equal deleted inserted replaced
4829:3b79a0fc91db 4831:c5aec27c1bf7
   892 
   892 
   893     def get_words(self):
   893     def get_words(self):
   894         """used by the full text indexer to get words to index
   894         """used by the full text indexer to get words to index
   895 
   895 
   896         this method should only be used on the repository side since it depends
   896         this method should only be used on the repository side since it depends
   897         on the indexer package
   897         on the logilab.db package
   898 
   898 
   899         :rtype: list
   899         :rtype: list
   900         :return: the list of indexable word of this entity
   900         :return: the list of indexable word of this entity
   901         """
   901         """
   902         from indexer.query_objects import tokenize
   902         from logilab.db.fti import tokenize
   903         # take care to cases where we're modyfying the schema
   903         # take care to cases where we're modyfying the schema
   904         pending = self._cw.transaction_data.setdefault('pendingrdefs', set())
   904         pending = self._cw.transaction_data.setdefault('pendingrdefs', set())
   905         words = []
   905         words = []
   906         for rschema in self.e_schema.indexable_attributes():
   906         for rschema in self.e_schema.indexable_attributes():
   907             if (self.e_schema, rschema) in pending:
   907             if (self.e_schema, rschema) in pending: