incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [21/50] git commit: [#6388] remove unnecessary wiki page lookup from sidebar (last needed in baa85e8)
Date Mon, 06 Jan 2014 15:18:11 GMT
[#6388] remove unnecessary wiki page lookup from sidebar (last needed in baa85e8)


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/84d6afcc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/84d6afcc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/84d6afcc

Branch: refs/heads/cj/6992
Commit: 84d6afcc2991000dd9369d7d02ac7b7ef688aa5c
Parents: cdb91d5
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Dec 20 14:22:32 2013 -0500
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Jan 2 16:16:21 2014 +0000

----------------------------------------------------------------------
 ForgeWiki/forgewiki/wiki_main.py | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/84d6afcc/ForgeWiki/forgewiki/wiki_main.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/wiki_main.py b/ForgeWiki/forgewiki/wiki_main.py
index 55ee9a3..e2112b6 100644
--- a/ForgeWiki/forgewiki/wiki_main.py
+++ b/ForgeWiki/forgewiki/wiki_main.py
@@ -228,12 +228,6 @@ class ForgeWikiApp(Application):
 
     @h.exceptionless([], log)
     def sidebar_menu(self):
-        try:
-            page = request.path_info.split(self.url)[-1].split('/')[-2]
-            page = h.really_unicode(page)
-            page = WM.Page.query.find(dict(app_config_id=self.config._id, title=page, deleted=False)).first()
-        except:
-            page = None
         return self.create_common_wiki_menu(has_access(self, 'create'),c.app.url,'add_wiki_page')
 
     def install(self, project):


Mime
View raw message