diff MoinMoin/wikiutil.py @ 157:99bf20eeb0bc

DEBUG patchset. will be reverted soon ... imported from: moin--main--1.5--patch-159
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Sat, 29 Oct 2005 21:30:56 +0000
parents 206b3db4eade
children 4f45bb113404
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sat Oct 29 20:18:48 2005 +0000
+++ b/MoinMoin/wikiutil.py	Sat Oct 29 21:30:56 2005 +0000
@@ -996,15 +996,20 @@
     if text is None:
         text = params # default
     if formatter:
+        import sys; sys.stderr.write("DEBUG - in link_tag. having a formatter\n" % (kw))
         url = "%s/%s" % (request.getScriptname(), params)
         if on != None:
+            import sys; sys.stderr.write("DEBUG - link_tag 2\n" % (kw))
             return formatter.url(on, url, css_class, **kw)
+        import sys; sys.stderr.write("DEBUG - link_tag 3\n" % (kw))
         return (formatter.url(1, url, css_class, **kw) +
                 formatter.rawHTML(text) +
                 formatter.url(0))
+    import sys; sys.stderr.write("DEBUG - link_tag 4\n" % (kw))
     if on != None and not on:
         return '</a>'
-        
+    
+    import sys; sys.stderr.write("DEBUG - link_tag 5\n" % (kw))
     attrs = ''
     if kw.has_key('attrs'):
         attrs += ' ' + kw['attrs']