diff MoinMoin/action/Despam.py @ 622:8fba6d15a2f5

make request.(html_)formatter available early and use it
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 06 May 2006 00:09:06 +0200
parents cf420addd95c
children ad62767ffd0c
line wrap: on
line diff
--- a/MoinMoin/action/Despam.py	Fri May 05 20:56:30 2006 +0200
+++ b/MoinMoin/action/Despam.py	Sat May 06 00:09:06 2006 +0200
@@ -15,7 +15,6 @@
 from MoinMoin.widget.browser import DataBrowserWidget
 from MoinMoin import wikiutil, Page, PageEditor
 from MoinMoin.macro import RecentChanges
-from MoinMoin.formatter.text_html import Formatter
 
 def show_editors(request, pagename, timestamp):
     _ =  request.getText
@@ -65,7 +64,7 @@
     #  mimic macro object for use of RecentChanges subfunctions
     macro = tmp()
     macro.request = request
-    macro.formatter = Formatter(request)
+    macro.formatter = request.html_formatter
 
     request.write("<table>")
     for line in log.reverse():