Author: justi9
Date: 2008-03-19 12:27:12 -0400 (Wed, 19 Mar 2008)
New Revision: 1781
Modified:
mgmt/cumin/python/cumin/queue.py
mgmt/cumin/python/cumin/widgets.py
Log:
Repair the main link in the context bar
Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py 2008-03-19 16:17:59 UTC (rev 1780)
+++ mgmt/cumin/python/cumin/queue.py 2008-03-19 16:27:12 UTC (rev 1781)
@@ -182,6 +182,10 @@
def show_purge(self, session):
return self.show_mode(session, self.purge)
+ def render_href(self, session, queue):
+ if queue:
+ return super(QueueFrame, self).render_href(session, queue)
+
def render_title(self, session, queue):
if queue:
return "Queue '%s'" % queue.name
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2008-03-19 16:17:59 UTC (rev 1780)
+++ mgmt/cumin/python/cumin/widgets.py 2008-03-19 16:27:12 UTC (rev 1781)
@@ -78,11 +78,10 @@
super(CuminFrame, self).do_process(session, *args)
def render_href(self, session, *args):
- if self.get_object(session):
- branch = session.branch()
- self.page().set_current_frame(branch, self)
- self.show_view(branch)
- return branch.marshal()
+ branch = session.branch()
+ self.page().set_current_frame(branch, self)
+ self.show_view(branch)
+ return branch.marshal()
class CuminView(Widget):
def get_args(self, session):
Show replies by date