diff MoinMoin/macro/WantedPages.py @ 2207:7ae581d79352

updated bot useragents list, reduce bot cpu usage of some macros (ported from 1.5 repo)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 May 2007 22:03:21 +0200
parents 4fc338f01037
children 09657fbd4aa2
line wrap: on
line diff
--- a/MoinMoin/macro/WantedPages.py	Mon May 14 21:50:37 2007 +0200
+++ b/MoinMoin/macro/WantedPages.py	Mon May 14 22:03:21 2007 +0200
@@ -17,6 +17,8 @@
     # prevent recursion
     if request.mode_getpagelinks:
         return ''
+    if request.isSpiderAgent: # reduce bot cpu usage
+        return ''
 
     # Get allpages switch from the form
     allpages = int(request.form.get('allpages', [0])[0]) != 0