diff MoinMoin/config/multiconfig.py @ 5841:8b3c4b85921b

action/rss_rc.py: param parsing rewritten to support retrieval of default values from wiki configuration.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Wed, 16 May 2012 15:42:09 +0400
parents 99e2309a7ec0
children 3d997b1235fe
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Wed May 16 04:29:16 2012 +0400
+++ b/MoinMoin/config/multiconfig.py	Wed May 16 15:42:09 2012 +0400
@@ -1285,6 +1285,29 @@
       ('include', [], 'List of pathes to backup.'),
       ('exclude', lambda self, filename: False, 'Function f(self, filename) that tells whether a file should be excluded from backup. By default, nothing is excluded.'),
     )),
+    'rss': ('RSS settings',
+        'These settings control RSS behaviour.',
+    (
+      ('items_default', 15, "Default maximum items value for RSS feed. Can be "
+                            "changed via items URL query parameter of rss_rc "
+                            "action."),
+      ('items_limit', 100, "Limit for item count got via RSS (i. e. user "
+                           "can't get more than items_limit items even via "
+                           "changing items URL query parameter)."),
+      ('unique', 0, "If set to 1, for each page name only one RSS item would "
+                    "be shown. Can be changed via unique rss_rc action URL "
+                    "query parameter."),
+      ('diffs', 0, "Add diffs in RSS item descriptions by default. Can be "
+                   "changed via diffs URL query parameter of rss_rc action."),
+      ('ddiffs', 0, "If set to 1, links to diff view instead of page itself "
+                    "would be generated by default. Can be changed via ddiffs "
+                    "URL query parameter of rss_rc action."),
+      ('lines_default', 20, "Default line count limit for diffs added as item "
+                            "descriptions for RSS items. Can be changed via "
+                            "lines URL query parameter of rss_rc action."),
+      ('lines_limit', 100, "Limit for possible line count for diffs added as "
+                           "item descriptions in RSS."),
+    )),
 }
 
 def _add_options_to_defconfig(opts, addgroup=True):