changeset 2292:7b7e07bb6f8a

Removed linking of all view to home.
author Ashutosh Singla <ashu1461@gmail.com>
date Sun, 22 Sep 2013 16:24:15 +0530
parents b02bac100074
children e5d44d1b9976
files MoinMoin/themes/__init__.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Sep 22 05:40:54 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Sun Sep 22 16:24:15 2013 +0530
@@ -23,7 +23,7 @@
 from MoinMoin.i18n import _, L_, N_
 from MoinMoin import wikiutil, user
 from MoinMoin.constants.keys import USERID, ADDRESS, HOSTNAME, REVID, ITEMID, NAME_EXACT
-from MoinMoin.constants.namespaces import NAMESPACE_DEFAULT, NAMESPACE_USERPROFILES
+from MoinMoin.constants.namespaces import NAMESPACE_DEFAULT, NAMESPACE_USERPROFILES, NAMESPACE_ALL
 from MoinMoin.search import SearchForm
 from MoinMoin.util.interwiki import split_interwiki, getInterwikiHome, is_local_wiki, is_known_wiki, url_for_item, CompositeName, split_fqname
 from MoinMoin.util.crypto import cache_key
@@ -235,7 +235,8 @@
             if endpoint == "frontend.show_root":
                 endpoint = "frontend.show_item"
                 root_fqname = fqname.get_root_fqname()
-                args['item_name'] = root_fqname.fullname
+                default_root = app.cfg.root_mapping.get(NAMESPACE_DEFAULT, app.cfg.default_root)
+                args['item_name'] = root_fqname.fullname if fqname.namespace != NAMESPACE_ALL else default_root
             elif endpoint in ["frontend.global_history", "frontend.global_tags"]:
                 args['namespace'] = fqname.namespace
             elif endpoint == "frontend.index":