You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/09/19 20:43:27 UTC

[11/50] git commit: [#4718] add main_menu implementations for ForgeBlog and ForgeChat

[#4718] add main_menu implementations for ForgeBlog and ForgeChat


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

Branch: refs/heads/master
Commit: 6cdc0f35f0ecdf3c8974de5b79ecb753f3022da1
Parents: 053e8e4
Author: Dave Brondsema <db...@geek.net>
Authored: Mon Sep 10 21:04:55 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Sep 14 20:58:18 2012 +0000

----------------------------------------------------------------------
 ForgeBlog/forgeblog/main.py |    3 +++
 ForgeChat/forgechat/main.py |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6cdc0f35/ForgeBlog/forgeblog/main.py
----------------------------------------------------------------------
diff --git a/ForgeBlog/forgeblog/main.py b/ForgeBlog/forgeblog/main.py
index 9dda569..0c9b246 100644
--- a/ForgeBlog/forgeblog/main.py
+++ b/ForgeBlog/forgeblog/main.py
@@ -89,6 +89,9 @@ class ForgeBlogApp(Application):
             if globals is not None:
                 session(globals).flush()
 
+    def main_menu(self):
+        return [SitemapEntry(self.config.options.mount_label.title(), '.')]
+
     @property
     @h.exceptionless([], log)
     def sitemap(self):

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6cdc0f35/ForgeChat/forgechat/main.py
----------------------------------------------------------------------
diff --git a/ForgeChat/forgechat/main.py b/ForgeChat/forgechat/main.py
index 4e693f0..4f2122f 100644
--- a/ForgeChat/forgechat/main.py
+++ b/ForgeChat/forgechat/main.py
@@ -50,6 +50,9 @@ class ForgeChatApp(Application):
         self.root = RootController()
         self.admin = AdminController(self)
 
+    def main_menu(self):
+        return [SitemapEntry(self.config.options.mount_label.title(), '.')]
+
     @property
     @h.exceptionless([], log)
     def sitemap(self):