Attachment 'preview-div.diff'

Download

   1 --- orig/MoinMoin/Page.py
   2 +++ mod/MoinMoin/Page.py
   3 @@ -384,6 +384,8 @@
   4          @param request: the request object
   5          @param msg: if given, display message in header area
   6          @keyword content_only: if 1, omit page header and footer
   7 +        @keyword content_id: set the id of the enclosing content div,
   8 +                             defaults to 'content'
   9          @keyword count_hit: if 1, add an event to the log
  10          """
  11          request.clock.start('send_page')
  12 
  13 
  14 --- orig/MoinMoin/PageEditor.py
  15 +++ mod/MoinMoin/PageEditor.py
  16 @@ -391,9 +391,7 @@
  17   + '</dl>')
  18  
  19          if preview is not None:
  20 -            self.request.write('<div id="preview">')
  21 -            self.send_page(self.request, content_only=1, hilite_re=badwords_re)
  22 -            self.request.write('</div>')
  23 +            self.send_page(self.request, content_only=1, content_id="preview", hilite_re=badwords_re)
  24  
  25          self.request.write('</div>') # end content div
  26          self.request.theme.emit_custom_html(self.cfg.page_footer1)

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] (2004-06-21 18:56:25, 1.0 KB) [[attachment:preview-div.diff]]
 All files | Selected Files: delete move to page copy to page

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