~ubuntu-branches/ubuntu/hardy/moin/hardy-updates

« back to all changes in this revision

Viewing changes to MoinMoin/macro/PageHits.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-06 17:44:41 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206174441-20bxkrbqdglgh4l7
Tags: 1.5.8-5ubuntu1
* Merge with Debian; remaining changes:
  - Suggest python-xml (needed for DocBook rendering). LP: #31728.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    def execute(self):
32
32
        """ Execute the macro and return output """
 
33
        if self.request.isSpiderAgent: # reduce bot cpu usage
 
34
            return ''
33
35
        cacheDate, hits = self.cachedHits()
34
36
        self.addHitsFromLog(hits, cacheDate)
35
37
        self.filterReadableHits(hits)