diff MoinMoin/formatter/text_html.py @ 3127:ea5383222f2f

refactored misc. modules to use own logger instead of request.log
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 27 Feb 2008 12:46:18 +0100
parents 5cb80bd604b4
children 61d2168cc010
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Wed Feb 27 10:32:52 2008 +0100
+++ b/MoinMoin/formatter/text_html.py	Wed Feb 27 12:46:18 2008 +0100
@@ -7,6 +7,9 @@
 """
 import os.path, re
 
+from MoinMoin import log
+logging = log.getLogger(__name__)
+
 from MoinMoin.formatter import FormatterBase
 from MoinMoin import wikiutil, i18n
 from MoinMoin.Page import Page
@@ -618,7 +621,7 @@
             querystr['do'] = 'view'
         if on:
             pagename, filename = AttachFile.absoluteName(url, self.page.page_name)
-            #self.request.log("attachment_link: url %s pagename %s filename %s" % (url, pagename, filename))
+            #logging.debug("attachment_link: url %s pagename %s filename %s" % (url, pagename, filename))
             fname = wikiutil.taintfilename(filename)
             if AttachFile.exists(self.request, pagename, fname):
                 target = AttachFile.getAttachUrl(pagename, fname, self.request, do=querystr['do'])
@@ -1288,7 +1291,7 @@
                 pass
         else:
             result['style'] = st
-        #self.request.log("_checkTableAttr returns %r" % result)
+        #logging.debug("_checkTableAttr returns %r" % result)
         return result