comparison MoinMoin/formatter/text_html.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 7dfda4ff75b7
children 88304513aa73
comparison
equal deleted inserted replaced
170:7dfda4ff75b7 171:11740ebb136c
220 """ 220 """
221 apply(FormatterBase.pagelink, (self, on, pagename, page), kw) 221 apply(FormatterBase.pagelink, (self, on, pagename, page), kw)
222 self.pagelink_preclosed = False 222 self.pagelink_preclosed = False
223 if page is None: 223 if page is None:
224 page = Page(self.request, pagename, formatter=self); 224 page = Page(self.request, pagename, formatter=self);
225 import sys; sys.stderr.write("DEBUG - pagelink: page is %r\n" % (page))
226 if self.request.user.show_nonexist_qm and on and not page.exists(): 225 if self.request.user.show_nonexist_qm and on and not page.exists():
227 import sys; sys.stderr.write("DEBUG - Calling 2x link_to(**%r)\n" % (kw))
228 self.pagelink_preclosed = True 226 self.pagelink_preclosed = True
229 return (page.link_to(self.request, on=1, **kw) + 227 return (page.link_to(self.request, on=1, **kw) +
230 self.text("?") + 228 self.text("?") +
231 page.link_to(self.request, on=0, **kw)) 229 page.link_to(self.request, on=0, **kw))
232 elif not on and self.pagelink_preclosed: 230 elif not on and self.pagelink_preclosed:
233 import sys; sys.stderr.write("DEBUG - pagelink: was preclosed\n" )
234 return "" 231 return ""
235 else: 232 else:
236 import sys; sys.stderr.write("DEBUG - pagelink: calling link_to\n" )
237 return page.link_to(self.request, on=on, **kw) 233 return page.link_to(self.request, on=on, **kw)
238 234
239 def interwikilink(self, on, interwiki='', pagename='', **kw): 235 def interwikilink(self, on, interwiki='', pagename='', **kw):
240 """ 236 """
241 @keyword title: override using the interwiki wikiname as title 237 @keyword title: override using the interwiki wikiname as title
270 """ 266 """
271 if url is not None: 267 if url is not None:
272 url = wikiutil.mapURL(self.request, url) 268 url = wikiutil.mapURL(self.request, url)
273 title = kw.get('title', None) 269 title = kw.get('title', None)
274 attrs = kw.get('attrs', None) 270 attrs = kw.get('attrs', None)
275 import sys; sys.stderr.write("DEBUG - called url. on is %r\n" % (on))
276 if on: 271 if on:
277 str = '<a' 272 str = '<a'
278 if css: 273 if css:
279 str = '%s class="%s"' % (str, css) 274 str = '%s class="%s"' % (str, css)
280 if title: 275 if title: