diff MoinMoin/apps/misc/views.py @ 2017:615ca978863f

remove more system items / sysitems_upgrade related code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 02 Mar 2013 18:15:47 +0100
parents 384555088cab
children 5f2fb2d7ed87
line wrap: on
line diff
--- a/MoinMoin/apps/misc/views.py	Sat Mar 02 17:57:45 2013 +0100
+++ b/MoinMoin/apps/misc/views.py	Sat Mar 02 18:15:47 2013 +0100
@@ -18,8 +18,6 @@
 from MoinMoin.constants.keys import MTIME
 from MoinMoin.themes import render_template
 
-SITEMAP_HAS_SYSTEM_ITEMS = True
-
 
 @misc.route('/sitemap')
 def sitemap():
@@ -34,16 +32,9 @@
     for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname):
         name = rev.name
         mtime = rev.meta[MTIME]
-        if False:  # was: wikiutil.isSystemItem(name)   XXX add back later, when we have that in the index
-            if not SITEMAP_HAS_SYSTEM_ITEMS:
-                continue
-            # system items are rather boring
-            changefreq = "yearly"
-            priority = "0.1"
-        else:
-            # these are the content items:
-            changefreq = "daily"
-            priority = "0.5"
+        # these are the content items:
+        changefreq = "daily"
+        priority = "0.5"
         sitemap.append((name, format_timestamp(mtime), changefreq, priority))
     # add an entry for root url
     root_item = app.cfg.item_root