Ignore:
Timestamp:
6 Mar 2020, 20:40:04 (5 years ago)
Author:
Henrik Bettermann
Message:

Use Uli's updateIndexes method when reinding catalogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/browser.py

    r12620 r16028  
    2626from waeup.kofa.interfaces import IUniversity
    2727from waeup.kofa.university.interfaces import IDepartment, ICertificate
     28from waeup.kofa.utils.helpers import reindex_cat
    2829
    2930def replaceStudentMessages(old, new):
     
    8586        self.context.logger.info(
    8687            'Catalog `%s_catalog` re-indexing started.' % ctlg)
    87         cat.updateIndexes()
     88        # Use Uli's updateIndexes method.
     89        # cat.updateIndexes()
     90        reindex_cat(cat)
    8891        no_of_entries = cat.values()[0].documentCount()
    8992        self.flash('%d %s re-indexed.' % (no_of_entries,ctlg))
Note: See TracChangeset for help on using the changeset viewer.