= Details = ## please fill this in Applies to:: Release 1.7.0 Purpose:: Allow usage of search expressions like in `<>` when using the `<>` macro. Description:: If the first parameter of `<>` starts with a colon, it treats it as a search expression. Author:: Max Cantor = Patch = It was complaining about removing non-ASCII characters from the filename of my attachment, and I don't know how to remove non-ASCII characters that don't exist, so... here's my patch inline! {{{#!diff diff -r 761c3a503be2 MoinMoin/macro/Include.py --- a/MoinMoin/macro/Include.py Sat Jun 21 23:38:41 2008 +0200 +++ b/MoinMoin/macro/Include.py Tue Nov 16 17:08:27 2010 -0500 @@ -19,7 +19,7 @@ generates_headings = True import re, StringIO -from MoinMoin import wikiutil +from MoinMoin import wikiutil, search from MoinMoin.Page import Page @@ -83,6 +83,9 @@ else: # Get user filtered readable page list pagelist = request.rootpage.getPageList(filter=inc_match.match) + elif inc_name.startswith(":"): + found_pages = search.searchPages(request, inc_name[1:], sort='page_name').hits + pagelist = [fp.page_name for fp in found_pages] # sort and limit page list pagelist.sort() }}} = Discussion = /!\ This stuff is completely unclear (how can one reproduce what problem?) (!) Why do you file a patch for moin 1.7.0 which is outdated and won't get any changes any more? = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: ---- CategoryMoinMoinPatch