Attachment 'rss_rc-1.9.py.patch'
Download 1 --- rss_rc.py.orig 2009-03-14 14:22:44.000000000 +0100
2 +++ rss_rc.py 2009-03-27 04:43:00.000000000 +0100
3 @@ -51,6 +51,12 @@
4 ddiffs = int(request.values.get('ddiffs', 0))
5 except ValueError:
6 ddiffs = 0
7 + # allow feeds from local tree
8 + try:
9 + local = int(request.values.get('local', 0))
10 + except ValueError:
11 + local = 0
12 +
13
14 # get data
15 log = editlog.EditLog(request)
16 @@ -61,9 +67,13 @@
17 for line in log.reverse():
18 if not request.user.may.read(line.pagename):
19 continue
20 + if local:
21 + pagename_len = len(pagename)
22 + if (line.pagename[:pagename_len] != pagename):
23 + continue
24 +
25 if (not line.action.startswith('SAVE') or
26 ((line.pagename in pages) and unique)): continue
27 - #if log.dayChanged() and log.daycount > _MAX_DAYS: break
28 line.editor = line.getInterwikiEditorData(request)
29 line.time = timefuncs.tmtuple(wikiutil.version2timestamp(line.ed_time_usecs)) # UTC
30 logdata.append(line)
31 @@ -128,8 +138,10 @@
32 ' Add "diffs=1" to add change diffs to the description of each items.\n'
33 ' \n'
34 ' Add "ddiffs=1" to link directly to the diff (good for FeedReader).\n'
35 - ' Current settings: items=%i, unique=%i, diffs=%i, ddiffs=%i'
36 - '-->\n' % (items_limit, max_items, unique, diffs, ddiffs)
37 + ' \n'
38 + ' Add "local=1" to limit feed for specified page and subpages\n'
39 + ' Current settings: items=%i, unique=%i, diffs=%i, ddiffs=%i, local=%i'
40 + '-->\n' % (items_limit, max_items, unique, diffs, ddiffs, local)
41 )
42
43 # emit channel description
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.