Attachment 'AttachFile_config_patch.patch'
Download 1 diff -r eb5c6f776bce MoinMoin/config/multiconfig.py
2 --- a/MoinMoin/config/multiconfig.py Fri May 09 01:29:10 2008 +0200
3 +++ b/MoinMoin/config/multiconfig.py Fri May 09 19:03:44 2008 +0200
4 @@ -512,6 +512,7 @@
5
6 quicklinks_default = [] # preload user quicklinks with this page list
7
8 + recent_changes_limit_entry_per_pagename = 10000
9 refresh = None # (minimum_delay, type), e.g.: (2, 'internal')
10 rss_cache = 60 # suggested caching time for RecentChanges RSS, in seconds
11
12 diff -r eb5c6f776bce MoinMoin/macro/RecentChanges.py
13 --- a/MoinMoin/macro/RecentChanges.py Fri May 09 01:29:10 2008 +0200
14 +++ b/MoinMoin/macro/RecentChanges.py Fri May 09 19:03:44 2008 +0200
15 @@ -290,11 +290,18 @@
16 this_day = today
17 day_count = 0
18
19 + att_count = 0
20 for line in log.reverse():
21 -
22 if not request.user.may.read(line.pagename):
23 continue
24
25 + if line.action == u'ATTNEW':
26 + if att_count > request.cfg.recent_changes_limit_entry_per_pagename:
27 + continue
28 + att_count += 1
29 + else:
30 + att_count = 0
31 +
32 line.time_tuple = request.user.getTime(wikiutil.version2timestamp(line.ed_time_usecs))
33 day = line.time_tuple[0:3]
34 hilite = line.ed_time_usecs > (bookmark_usecs or line.ed_time_usecs)
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.