changeset 1934:ee43744a3ac8 namespaces

remove None items when building a name list (None = empty name list)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 03 Feb 2013 05:07:08 +0100
parents 4658b5d59ad6
children 2589c6bc54d7
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Feb 03 04:05:02 2013 +0100
+++ b/MoinMoin/apps/frontend/views.py	Sun Feb 03 05:07:08 2013 +0100
@@ -1681,7 +1681,8 @@
     :rtype: tuple
     :returns: start word, end word, matches dict
     """
-    item_names = [rev.name for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
+    item_names = [rev.name for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)
+                  if rev.name is not None]
     if item_name in item_names:
         item_names.remove(item_name)
     # Get matches using wiki way, start and end of word