changeset 3239:e5a2e21afc17

changed to new arg parser
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 10 Mar 2008 23:26:34 +0100
parents 7ebe0e41088e
children e8fcaf99434f
files MoinMoin/macro/AbandonedPages.py MoinMoin/macro/RecentChanges.py
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/AbandonedPages.py	Mon Mar 10 11:26:56 2008 +0100
+++ b/MoinMoin/macro/AbandonedPages.py	Mon Mar 10 23:26:34 2008 +0100
@@ -12,6 +12,6 @@
 
 from MoinMoin.macro import RecentChanges
 
-def execute(macro, args):
-    return RecentChanges.execute(macro, args, abandoned=1)
+def macro_AbandonedPages(macro):
+    return RecentChanges.macro_RecentChanges(macro, abandoned=True)
 
--- a/MoinMoin/macro/RecentChanges.py	Mon Mar 10 11:26:56 2008 +0100
+++ b/MoinMoin/macro/RecentChanges.py	Mon Mar 10 23:26:34 2008 +0100
@@ -143,7 +143,7 @@
 def cmp_lines(first, second):
     return cmp(first[0], second[0])
 
-def print_abandoned(macro, args, **kw):
+def print_abandoned(macro):
     request = macro.request
     _ = request.getText
     d = {}
@@ -228,10 +228,10 @@
     d['rc_msg'] = msg
     request.write(request.theme.recentchanges_footer(d))
 
-def execute(macro, args, **kw):
+def macro_RecentChanges(macro, abandoned=False):
     # handle abandoned keyword
-    if kw.get('abandoned', 0):
-        print_abandoned(macro, args, **kw)
+    if abandoned:
+        print_abandoned(macro)
         return ''
 
     request = macro.request