Changeset 7648


Ignore:
Timestamp:
14 Feb 2012, 14:58:53 (13 years ago)
Author:
Henrik Bettermann
Message:

With this little statistics we get some clues of the speed of our portal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7647 r7648  
    334334            self.flash('%s_catalog does not exist' % ctlg)
    335335            return
     336        self.context.logger.info(
     337            'Catalog `%s_catalog` re-indexing started.' % ctlg)
    336338        cat.updateIndexes()
    337         self.flash('%s reindexed.' % ctlg.capitalize())
     339        no_of_entries = cat.values()[0].documentCount()
     340        self.flash('%d %s re-indexed.' % (no_of_entries,ctlg))
     341        self.context.logger.info(
     342            'Re-indexing of %d objects finished.' % no_of_entries)
    338343        return
    339344
Note: See TracChangeset for help on using the changeset viewer.