comparison 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
comparison
equal deleted inserted replaced
2206:b9fa45f5c47f 2207:7ae581d79352
14 request = macro.request 14 request = macro.request
15 _ = request.getText 15 _ = request.getText
16 16
17 # prevent recursion 17 # prevent recursion
18 if request.mode_getpagelinks: 18 if request.mode_getpagelinks:
19 return ''
20 if request.isSpiderAgent: # reduce bot cpu usage
19 return '' 21 return ''
20 22
21 # Get allpages switch from the form 23 # Get allpages switch from the form
22 allpages = int(request.form.get('allpages', [0])[0]) != 0 24 allpages = int(request.form.get('allpages', [0])[0]) != 0
23 25