changeset 5847:2191676ba6fe

action/rss_rc.py: comment insertion code changed in flavor of using named placeholders.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Thu, 17 May 2012 02:28:10 +0400
parents a1054c9e7aae
children 468e63254a4a
files MoinMoin/action/rss_rc.py
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/rss_rc.py	Thu May 17 03:30:39 2012 +0400
+++ b/MoinMoin/action/rss_rc.py	Thu May 17 02:28:10 2012 +0400
@@ -161,8 +161,9 @@
         handler.startDocument()
         handler._out.write(unicode(
             '<!--\n'
-            '    Add an "items=nnn" URL parameter to get more than the default %d items.\n'
-            '    You cannot get more than %d items though.\n'
+            '    Add an "items=nnn" URL parameter to get more than the \n'
+            '    default %(def_max_items)d items. You cannot get more than \n'
+            '    %(items_limit)d items though.\n'
             '    \n'
             '    Add "unique=1" to get a list of changes where page names are unique,\n'
             '    i.e. where only the latest change of each page is reflected.\n'
@@ -172,7 +173,7 @@
             '    Add "ddiffs=1" to link directly to the diff (good for FeedReader).\n'
             '    \n'
             '    Add "lines=nnn" to change maximum number of diff/body lines \n'
-            '    to show. Cannot be more than %d.\n'
+            '    to show. Cannot be more than %(lines_limit)d.\n'
             '    \n'
             '    Add "show_att=1" to show items related to attachments.\n'
             '    \n'
@@ -183,10 +184,10 @@
             '    getting feed for page tree) or point to specific page (if \n'
             '    none of the above can be applied).\n'
             '    \n'
-            '    Current settings: items=%i, unique=%i, diffs=%i, ddiffs=%i, \n'
-            '    lines=%i, show_att=%i, page=%s\n'
-            '-->\n' % (def_max_items, items_limit, lines_limit, max_items,
-                       unique, diffs, ddiffs, max_lines, show_att, page_pattern)
+            '    Current settings: items=%(max_items)i, unique=%(unique)i, \n'
+            '    diffs=%(diffs)i, ddiffs=%(ddiffs)i, lines=%(max_lines)i, \n'
+            '    show_att=%(show_att)i, page=%(page_pattern)s\n'
+            '-->\n' % locals()
             ).encode(config.charset))
 
         # emit channel description