comparison MoinMoin/macro/OrphanedPages.py @ 3229:09657fbd4aa2

converted to arg parser
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 09 Mar 2008 19:51:01 +0100
parents 7ae581d79352
children
comparison
equal deleted inserted replaced
3228:c7fabea3fb4f 3229:09657fbd4aa2
6 @license: GNU GPL, see COPYING for details. 6 @license: GNU GPL, see COPYING for details.
7 """ 7 """
8 8
9 Dependencies = ["pages"] 9 Dependencies = ["pages"]
10 10
11 def execute(macro, args): 11 def macro_OrphanedPages(macro):
12 _ = macro.request.getText 12 _ = macro.request.getText
13 13
14 if macro.request.mode_getpagelinks: # prevent recursion 14 if macro.request.mode_getpagelinks: # prevent recursion
15 return '' 15 return ''
16 if macro.request.isSpiderAgent: # reduce bot cpu usage 16 if macro.request.isSpiderAgent: # reduce bot cpu usage