changeset 4691:64c2196fc6b3

i18n.strings: add pagesets attribute, add optional_pages list
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Apr 2009 14:11:54 +0200
parents 61322779dd5d
children b033c6e760ba
files MoinMoin/i18n/strings.py
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/i18n/strings.py	Sun Apr 19 01:02:52 2009 +0200
+++ b/MoinMoin/i18n/strings.py	Sun Apr 19 14:11:54 2009 +0200
@@ -244,13 +244,20 @@
     _('WikiCourseHandOut'),
 ]
 
-all_essential_pages = (
+essential_pages = (
     essential_system_pages +
     essential_category_pages +
     essential_template_pages +
     essential_help_pages
 )
 
+optional_pages = (
+    optional_system_pages +
+    optional_category_pages +
+    optional_template_pages +
+    optional_help_pages
+)
+
 all_pages = (
     all_system_pages +
     all_category_pages +
@@ -261,6 +268,9 @@
     course_pages
 )
 
+# a set with all the *_pages attribute names we have defined above
+pagesets = set([attr for attr in globals().keys() if attr.endswith("_pages")])
+
 # we use Sun at index 0 and 7 to be compatible with EU and US day indexing
 # schemes, like it is also done within crontab entries:
 weekdays = [_('Sun'), _('Mon'), _('Tue'), _('Wed'), _('Thu'), _('Fri'), _('Sat'), _('Sun')]