Attachment 'fix-subpage-Self2.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,6 +240,10 @@
  10          href = wikiutil.join_wiki(wikiurl, wikitail)
  11  
  12          if wikitag == 'Self': # for own wiki, do simple links
  13 +            if config.allow_subpages and wikitail.startswith(wikiutil.CHILD_PREFIX):
  14 +                href = wikiutil.join_wiki(wikiurl, self.page.page_name + wikitail)
  15 +            elif config.allow_subpages and wikitail.startswith(wikiutil.PARENT_PREFIX):
  16 +                href = wikiutil.join_wiki(wikiurl, '/'.join(filter(None, self.page.page_name.split('/')[:-1] + [wikitail[len(wikiutil.PARENT_PREFIX):]])))
  17              return (self.url(1, href, unescaped=0, pretty_url=kw.get('pretty_url', 0)))
  18          else: # return InterWiki hyperlink
  19              if wikitag_bad:

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.