Attachment 'patch-Include-included-page-containers.diff'

Download

   1 # HG changeset patch
   2 # User Paul Boddie <paul@boddie.org.uk>
   3 # Date 1296938752 -3600
   4 # Node ID 10dc0763b79b05e1a861e7aa303016f6b7ab2b55
   5 # Parent  fb521bcd610f8a096d1e72905f19f922e5d8eca2
   6 Introduced a container around included pages in order to permit improved
   7 positioning of the page-related links.
   8 
   9 diff -r fb521bcd610f -r 10dc0763b79b MoinMoin/macro/Include.py
  10 --- a/MoinMoin/macro/Include.py	Sat Feb 05 01:14:02 2011 +0100
  11 +++ b/MoinMoin/macro/Include.py	Sat Feb 05 21:45:52 2011 +0100
  12 @@ -200,6 +200,9 @@
  13          this_page._macroInclude_pagelist[inc_name] = \
  14              this_page._macroInclude_pagelist.get(inc_name, 0) + 1
  15  
  16 +        # output a container for the included page
  17 +        result.append(macro.formatter.div(1, css_class="included-page"))
  18 +
  19          # output the included page
  20          strfile = StringIO.StringIO()
  21          request.redirect(strfile)
  22 @@ -228,6 +231,9 @@
  23              ])
  24          # XXX page.link_to is wrong now, it escapes the edit_icon html as it escapes normal text
  25  
  26 +        # close the container for the included page
  27 +        result.append(macro.formatter.div(0))
  28 +
  29      # return include text
  30      return ''.join(result)
  31  

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] (2011-02-05 21:03:35, 1.1 KB) [[attachment:patch-Include-included-page-containers.diff]]
 All files | Selected Files: delete move to page copy to page

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