changeset 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 7dfda4ff75b7
children c22b53fb1796
files MoinMoin/Page.py MoinMoin/formatter/text_html.py MoinMoin/wikiutil.py
diffstat 3 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Sun Oct 30 22:25:59 2005 +0000
+++ b/MoinMoin/Page.py	Sun Oct 30 22:32:35 2005 +0000
@@ -852,7 +852,6 @@
 
         link = wikiutil.link_tag(request, url, wikiutil.escape(text),
                                  formatter=getattr(self, 'formatter', None), **kw)
-        import sys; sys.stderr.write("DEBUG - in link_to. got '%r' from link_tag\n" % (link))
         # Create a link to attachments if any exist
         if kw.get('attachment_indicator', 0):
             from MoinMoin.action import AttachFile
--- a/MoinMoin/formatter/text_html.py	Sun Oct 30 22:25:59 2005 +0000
+++ b/MoinMoin/formatter/text_html.py	Sun Oct 30 22:32:35 2005 +0000
@@ -222,18 +222,14 @@
         self.pagelink_preclosed = False
         if page is None:
             page = Page(self.request, pagename, formatter=self);
-        import sys; sys.stderr.write("DEBUG - pagelink: page is %r\n" % (page))    
         if self.request.user.show_nonexist_qm and on and not page.exists():
-            import sys; sys.stderr.write("DEBUG - Calling 2x link_to(**%r)\n" % (kw))
             self.pagelink_preclosed = True
             return (page.link_to(self.request, on=1, **kw) +
                     self.text("?") +
                     page.link_to(self.request, on=0, **kw))
         elif not on and self.pagelink_preclosed:
-            import sys; sys.stderr.write("DEBUG - pagelink: was preclosed\n" )
             return ""
         else:
-            import sys; sys.stderr.write("DEBUG - pagelink: calling link_to\n" )
             return page.link_to(self.request, on=on, **kw)
 
     def interwikilink(self, on, interwiki='', pagename='', **kw):
@@ -272,7 +268,6 @@
             url = wikiutil.mapURL(self.request, url)
         title = kw.get('title', None)
         attrs = kw.get('attrs', None)
-        import sys; sys.stderr.write("DEBUG - called url. on is %r\n" % (on))
         if on:
             str = '<a'
             if css: 
--- a/MoinMoin/wikiutil.py	Sun Oct 30 22:25:59 2005 +0000
+++ b/MoinMoin/wikiutil.py	Sun Oct 30 22:32:35 2005 +0000
@@ -996,20 +996,15 @@
     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']