comparison MoinMoin/wikiutil.py @ 171:11740ebb136c

Removed debug prints imported from: moin--main--1.5--patch-173
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Sun, 30 Oct 2005 22:32:35 +0000
parents 4f45bb113404
children df4fe62dc160
comparison
equal deleted inserted replaced
170:7dfda4ff75b7 171:11740ebb136c
994 """ 994 """
995 css_class = kw.get('css_class', None) 995 css_class = kw.get('css_class', None)
996 if text is None: 996 if text is None:
997 text = params # default 997 text = params # default
998 if formatter: 998 if formatter:
999 import sys; sys.stderr.write("DEBUG - in link_tag. having a formatter\n" % (kw))
1000 url = "%s/%s" % (request.getScriptname(), params) 999 url = "%s/%s" % (request.getScriptname(), params)
1001 if on != None: 1000 if on != None:
1002 import sys; sys.stderr.write("DEBUG - link_tag 2\n" % (kw))
1003 return formatter.url(on, url, css_class, **kw) 1001 return formatter.url(on, url, css_class, **kw)
1004 import sys; sys.stderr.write("DEBUG - link_tag 3\n" % (kw))
1005 return (formatter.url(1, url, css_class, **kw) + 1002 return (formatter.url(1, url, css_class, **kw) +
1006 formatter.rawHTML(text) + 1003 formatter.rawHTML(text) +
1007 formatter.url(0)) 1004 formatter.url(0))
1008 import sys; sys.stderr.write("DEBUG - link_tag 4\n" % (kw))
1009 if on != None and not on: 1005 if on != None and not on:
1010 return '</a>' 1006 return '</a>'
1011 1007
1012 import sys; sys.stderr.write("DEBUG - link_tag 5\n" % (kw))
1013 attrs = '' 1008 attrs = ''
1014 if kw.has_key('attrs'): 1009 if kw.has_key('attrs'):
1015 attrs += ' ' + kw['attrs'] 1010 attrs += ' ' + kw['attrs']
1016 if css_class: 1011 if css_class:
1017 attrs += ' class="%s"' % css_class 1012 attrs += ' class="%s"' % css_class