changeset 590:1e01ab1acd60

0.6dev: Fix highlighting for active navigation. Closes #343.
author osimons
date Sun, 26 Jul 2009 09:45:44 +0000
parents f9d17a0ee407
children 87f87c756dca
files bitten/web_ui.py
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/web_ui.py
+++ b/bitten/web_ui.py
@@ -76,12 +76,7 @@
     # INavigationContributor methods
 
     def get_active_navigation_item(self, req):
-        """Called by Trac to determine which navigation item should be marked
-        as active.
-        
-        :param req: the request object
-        """
-        return 'build'
+        pass
 
     def get_navigation_items(self, req):
         """Return the navigation item for access the build status overview from
@@ -130,7 +125,15 @@
 class BuildConfigController(Component):
     """Implements the web interface for build configurations."""
 
-    implements(IRequestHandler, IRequestFilter)
+    implements(IRequestHandler, IRequestFilter, INavigationContributor)
+
+    # INavigationContributor methods
+
+    def get_active_navigation_item(self, req):
+        return 'build'
+
+    def get_navigation_items(self, req):
+        return []
 
     # IRequestHandler methods
 
Copyright (C) 2012-2017 Edgewall Software