I'd like to be able to use the RecentChanges macro to only see a limited number of pages, and likewise the rss feed.
From the patch I can see, that not a number-limit, but a title-limit-by-RE is proposed. That's a neat idea! -- FabianKreutz 2005-08-12 11:22:18
Yes, of course. It was rather late at night when I wrote that -- JohannesBerg 2005-08-12 11:36:21
Could it be limited to the pages the user has created only too, see FeatureRequests/RecentChangesOfMyPages. -- ReimarBauer 2005-08-12 14:31:13
Here's a patch:
* looking for arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-884 to compare with * comparing to arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-884: ... done. * modified files --- orig/MoinMoin/action/rss_rc.py +++ mod/MoinMoin/action/rss_rc.py @@ -23,6 +23,10 @@ cfg = request.cfg # get params + try: + pagere = re.compile(request.form['pagelimit'][0]) + except Exception, e: + pagere = None items_limit = 100 try: max_items = int(request.form['items'][0]) @@ -62,6 +66,8 @@ for line in log.reverse(): if not request.user.may.read(line.pagename): continue + if not (pagere is None) and not pagere.match(line.pagename): + continue if ((line.action[:4] != 'SAVE') or ((line.pagename in pages) and unique)): continue #if log.dayChanged() and log.daycount > _MAX_DAYS: break --- orig/MoinMoin/macro/RecentChanges.py +++ mod/MoinMoin/macro/RecentChanges.py @@ -212,6 +212,10 @@ request.write(request.theme.recentchanges_footer(d)) def execute(macro, args, **kw): + if args: + pagere = re.compile(args) + else: + pagere = None # handle abandoned keyword if kw.get('abandoned', 0): print_abandoned(macro, args, **kw) @@ -321,6 +325,9 @@ if ignore_pages.has_key(line.pagename): continue + if not (pagere is None) and not pagere.match(line.pagename): + continue + # end listing by default if user has a bookmark and we reached it if not max_days and not hilite: msg = _('[Bookmark reached]')
-- JohannesBerg 2005-08-11 23:29:41
This could accomplish EXACTLY what I need - RecentChanges of pages to which I'm subscribed & RecentChanges by specific users
This related to - http://moinmoin.wikiwikiweb.de/FeatureRequests#head-58fb3cc3fc5907e114ab686538a81f4f5b7422d6
Thanks - I can't wait for this feature!
-- JackBates 2005-10-26 19:38:05
I confirm this patch still applies on 1.5.8. -- TheAnarcat 2007-07-26 00:29:19