Attachment 'Include.patch'
Download 1 21c21
2 < from MoinMoin import wikiutil
3 ---
4 > from MoinMoin import search, wikiutil
5 76c76
6 < pagelist = [inc_name]
7 ---
8 > pagelist = []
9 84a85,100
10 > else:
11 > try:
12 > results = search.searchPages(macro.request, args.group('name'),
13 > titlesearch=1, case=0,
14 > sort='page_name')
15 > for foundpage in results.hits:
16 > pagelist.append(wikiutil.AbsPageName(this_page.page_name, foundpage.page.page_name))
17 >
18 > except ValueError:
19 > # same error as in MoinMoin/action/fullsearch.py, keep it that way!
20 > result = ''.join([macro.formatter.text('<<PageList('),
21 > _('Your search query {{{"%s"}}} is invalid. Please refer to '
22 > 'HelpOnSearching for more information.', wiki=True,
23 > percent=True) % wikiutil.escape(args.group('name')),
24 > macro.formatter.text(')>>')])
25 > return result
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.You are not allowed to attach a file to this page.