Attachment 'LikePages.py.diff'

Download

   1 --- LikePages.py.orig	2008-03-16 12:29:48.000000000 -0700
   2 +++ LikePages.py	2008-06-26 16:16:03.000000000 -0700
   3 @@ -107,6 +107,10 @@
   4          if not (page.exists() and request.user.may.read(name)):
   5              del matches[name]
   6  
   7 +    plural = u"%ss" % pagename
   8 +    if plural in pages:
   9 +        close_matches[plural] = 9
  10 +
  11      # Finally, merge both dicts
  12      matches.update(close_matches)
  13  
  14 @@ -204,6 +208,7 @@
  15  def showMatches(pagename, request, start, end, matches, show_count=True):
  16      keys = matches.keys()
  17      keys.sort()
  18 +    _showMatchGroup(request, matches, keys, 9, pagename, show_count)
  19      _showMatchGroup(request, matches, keys, 8, pagename, show_count)
  20      _showMatchGroup(request, matches, keys, 4, "%s/..." % pagename, show_count)
  21      _showMatchGroup(request, matches, keys, 3, "%s...%s" % (start, end), show_count)

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-06-26 23:32:10, 0.8 KB) [[attachment:LikePages.py.diff]]
 All files | Selected Files: delete move to page copy to page

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