changeset 5851:ab0bc2441518

action/rss_rc.py: Retrieval of configuration options changed from getattr() since they are in config now already. Last rev which does not depend on configuration options presence: 468e63254a4a.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Fri, 18 May 2012 13:35:07 +0400
parents 8b4f02226670
children 3ae216a66dd8
files MoinMoin/action/rss_rc.py
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/rss_rc.py	Fri May 18 13:25:44 2012 +0400
+++ b/MoinMoin/action/rss_rc.py	Fri May 18 13:35:07 2012 +0400
@@ -50,15 +50,15 @@
     _ = request.getText
 
     # get params
-    def_max_items = max_items = getattr(cfg, "rss_items_default", 15)
-    items_limit = getattr(cfg, "rss_items_limit", 100)
-    unique = getattr(cfg, "rss_unique", 0)
-    diffs = getattr(cfg, "rss_diffs", 0)
-    ddiffs = getattr(cfg, "rss_ddiffs", 0)
-    max_lines = getattr(cfg, "rss_lines_default", 20)
-    lines_limit = getattr(cfg, "rss_lines_limit", 100)
-    show_att = getattr(cfg, "rss_show_attachment_entries", 0)
-    page_pattern = getattr(cfg, "rss_page_filter_pattern", "")
+    def_max_items = max_items = cfg.rss_items_default
+    items_limit = cfg.rss_items_limit
+    unique = cfg.rss_unique
+    diffs = cfg.rss_diffs
+    ddiffs = cfg.rss_ddiffs
+    max_lines = cfg.rss_lines_default
+    lines_limit = cfg.rss_lines_limit
+    show_att = cfg.rss_show_attachment_entries
+    page_pattern = cfg.rss_page_filter_pattern
 
     try:
         max_items = min(int(request.values.get('items', max_items)),