Attachment 'fullsearch.patch'

Download

   1 --- /home2/moin/MoinMoin/action/fullsearch.py	2012-02-07 21:48:50.000000000 +0100
   2 +++ fullsearch.py	2012-03-19 21:17:45.000000000 +0100
   3 @@ -162,9 +162,9 @@
   4  
   5      # check for sensible search term
   6      stripped = needle.strip()
   7 -    if len(stripped) == 0:
   8 -        request.theme.add_msg(_('Please use a more selective search term instead '
   9 -                'of {{{"%s"}}}', wiki=True) % wikiutil.escape(needle), "error")
  10 +    lstripped = stripped.lower()
  11 +    if (len(lstripped) < 3) or ('regex:' in lstripped) or ('r:' in lstripped) or ('*' in lstripped):
  12 +        request.theme.add_msg(_('Please use a more selective search term instead of {{{"%s"}}}', wiki=True) % wikiutil.escape(needle), "error")
  13          Page(request, pagename).send_page()
  14          return
  15      needle = stripped

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] (2012-03-19 20:35:52, 0.8 KB) [[attachment:fullsearch.patch]]
 All files | Selected Files: delete move to page copy to page

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