Attachment 'main.diff'

Download

   1 --- /home/jonathanrrogers/downloads/wiki/data/plugin/macro/MoinRating/main.py	2008-01-11 12:48:37.000000000 -0800
   2 +++ /home/jonathanrrogers/fhs/etc/moinfarm/findyourfans/data/plugin/macro/MoinRating/main.py	2008-01-11 12:49:18.000000000 -0800
   3 @@ -186,6 +186,7 @@
   4  
   5  from MoinMoin.Page import Page
   6  
   7 +
   8  def DoOverview(macro, args):
   9      '''
  10      moin syntax:
  11 @@ -316,7 +317,7 @@
  12          patterns = re.split(r'\s*\|\s*', subject)
  13          patterns = [ '%s' % fnmatch.translate(each)[:-1] for each in patterns ]
  14          pattern = '|'.join(patterns)
  15 -        pattern = r'^[^\#].*?\[\[Rating\((%s)\)\]\]' % pattern
  16 +        pattern = r'^[^\#].*?\<\<Rating\((%s)\)\>\>' % pattern
  17  
  18          text = page.get_raw_body() or '' # DO NOT USE page.getPageText - it's BUGGY !!!
  19          subjectsHere = re.findall(pattern, text, re.M)

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-01-08 17:18:03, 47.9 KB) [[attachment:MoinRatings-1.6_fixed.zip]]
  • [get | view] (2007-11-01 02:49:52, 51.2 KB) [[attachment:RatingSystemExample.JPG]]
  • [get | view] (2008-01-11 21:02:48, 0.8 KB) [[attachment:main.diff]]
 All files | Selected Files: delete move to page copy to page

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