changeset 169:826780dc1607

DEBUG - added a few new debug statements imported from: moin--main--1.5--patch-171
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Sun, 30 Oct 2005 21:46:20 +0000
parents 8c2614a730c0
children 7dfda4ff75b7
files MoinMoin/formatter/text_html.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Sun Oct 30 21:37:33 2005 +0000
+++ b/MoinMoin/formatter/text_html.py	Sun Oct 30 21:46:20 2005 +0000
@@ -221,7 +221,7 @@
         apply(FormatterBase.pagelink, (self, on, pagename, page), kw)
         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():
             self.pagelink_preclosed = True
             import sys; sys.stderr.write("DEBUG - Calling 2x link_to(**%r)\n" % (kw))
@@ -229,9 +229,11 @@
                     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" )
             self.pagelink_preclosed = False
             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):