entity.py
changeset 4848 41f84eea63c9
parent 4835 13b0b96d7982
child 4850 bd640b137f50
equal deleted inserted replaced
4847:9466604ef448 4848:41f84eea63c9
   881 
   881 
   882     def get_words(self):
   882     def get_words(self):
   883         """used by the full text indexer to get words to index
   883         """used by the full text indexer to get words to index
   884 
   884 
   885         this method should only be used on the repository side since it depends
   885         this method should only be used on the repository side since it depends
   886         on the logilab.db package
   886         on the logilab.database package
   887 
   887 
   888         :rtype: list
   888         :rtype: list
   889         :return: the list of indexable word of this entity
   889         :return: the list of indexable word of this entity
   890         """
   890         """
   891         from logilab.db.fti import tokenize
   891         from logilab.database.fti import tokenize
   892         # take care to cases where we're modyfying the schema
   892         # take care to cases where we're modyfying the schema
   893         pending = self._cw.transaction_data.setdefault('pendingrdefs', set())
   893         pending = self._cw.transaction_data.setdefault('pendingrdefs', set())
   894         words = []
   894         words = []
   895         for rschema in self.e_schema.indexable_attributes():
   895         for rschema in self.e_schema.indexable_attributes():
   896             if (self.e_schema, rschema) in pending:
   896             if (self.e_schema, rschema) in pending: