diff MoinMoin/action/AttachFile.py @ 616:3b08d9413589

move send_title/footer from wikiutil to theme.__init__
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 05 May 2006 12:41:10 +0200
parents 77526f8f3ecf
children cf420addd95c
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Fri May 05 10:40:13 2006 +0200
+++ b/MoinMoin/action/AttachFile.py	Fri May 05 12:41:10 2006 +0200
@@ -502,11 +502,11 @@
     request.http_headers()
     # Use user interface language for this generated page
     request.setContentLanguage(request.lang)
-    wikiutil.send_title(request, _('Attachments for "%(pagename)s"') % {'pagename': pagename}, pagename=pagename, msg=msg)
+    request.theme.send_title(_('Attachments for "%(pagename)s"') % {'pagename': pagename}, pagename=pagename, msg=msg)
     request.write('<div id="content">\n') # start content div
     send_uploadform(pagename, request)
     request.write('</div>\n') # end content div
-    wikiutil.send_footer(request, pagename)
+    request.theme.send_footer(pagename)
 
 
 def do_upload(pagename, request):
@@ -817,7 +817,7 @@
     request.setContentLanguage(request.lang)
     title = _('attachment:%(filename)s of %(pagename)s', formatted=True) % {
         'filename': filename, 'pagename': pagename}
-    wikiutil.send_title(request, title, pagename=pagename)
+    request.theme.send_title(title, pagename=pagename)
 
     # send body
     # TODO: use formatter startContent?
@@ -827,7 +827,7 @@
     request.write('</div>\n') # end content div
 
     # send footer
-    wikiutil.send_footer(request, pagename)
+    request.theme.send_footer(pagename)
 
 
 #############################################################################