Attachment 'fix-subpage-Self.diff'

Download

   1 * looking for arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-652 to compare with
   2 * comparing to arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-652
   3 M  MoinMoin/formatter/text_html.py
   4 
   5 * modified files
   6 
   7 --- orig/MoinMoin/formatter/text_html.py
   8 +++ mod/MoinMoin/formatter/text_html.py
   9 @@ -240,7 +240,10 @@
  10          href = wikiutil.join_wiki(wikiurl, wikitail)
  11  
  12          if wikitag == 'Self': # for own wiki, do simple links
  13 -            return (self.url(1, href, unescaped=0, pretty_url=kw.get('pretty_url', 0)))
  14 +            if config.allow_subpages and wikitail.startswith(wikiutil.CHILD_PREFIX):
  15 +                return (self.url(1, wikiutil.join_wiki(wikiurl, self.page.page_name + wikitail), unescaped=0, pretty_url=kw.get('pretty_url', 0)))
  16 +            else:
  17 +                return (self.url(1, href, unescaped=0, pretty_url=kw.get('pretty_url', 0)))
  18          else: # return InterWiki hyperlink
  19              if wikitag_bad:
  20                  html_class = 'badinterwiki'

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-03-07 13:30:01, 1.0 KB) [[attachment:fix-subpage-Self.diff]]
  • [get | view] (2005-03-07 13:41:27, 1.0 KB) [[attachment:fix-subpage-Self2.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.