equal
deleted
inserted
replaced
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: |