Attachment 'browser.patch'

Download

   1 diff -r f796dbb7e15b MoinMoin/widget/browser.py
   2 --- a/MoinMoin/widget/browser.py	Mon Sep 08 11:58:03 2008 +0200
   3 +++ b/MoinMoin/widget/browser.py	Wed Sep 10 11:36:56 2008 +0200
   4 @@ -93,7 +93,7 @@
   5          common[2] = self._makeoption(self._notempty, value == self.__notempty, self.__notempty)
   6          return '\n'.join(common + result)
   7  
   8 -    def _format(self, formatter=None, method="GET"):
   9 +    def _format(self, formatter=None, method="GET", enable_form=True):
  10          """
  11          does the formatting of the table
  12          @param formatter: formatter
  13 @@ -102,7 +102,8 @@
  14          fmt = formatter or self.request.formatter
  15  
  16          result = []
  17 -        result.append(fmt.rawHTML('<form action="%s/%s" method="%s" name="%sform">' % (self.request.getScriptname(), wikiutil.quoteWikinameURL(self.request.page.page_name), method, self.data_id)))
  18 +        if enable_form:
  19 +            result.append(fmt.rawHTML('<form action="%s/%s" method="%s" name="%sform">' % (self.request.getScriptname(), wikiutil.quoteWikinameURL(self.request.page.page_name), method, self.data_id)))
  20          result.append(fmt.div(1))
  21  
  22          havefilters = False
  23 @@ -189,7 +190,8 @@
  24  
  25          result.append(fmt.table(0))
  26          result.append(fmt.div(0))
  27 -        result.append(fmt.rawHTML('</form>'))
  28 +        if enable_form:
  29 +            result.append(fmt.rawHTML('</form>'))
  30          return ''.join(result)
  31  
  32      format = _format # DEPRECATED, use render()

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] (2008-09-10 09:40:12, 1.4 KB) [[attachment:browser.patch]]
 All files | Selected Files: delete move to page copy to page

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