Author: justi9
Date: 2008-03-19 09:31:48 -0400 (Wed, 19 Mar 2008)
New Revision: 1775
Modified:
mgmt/cumin/python/cumin/widgets.py
Log:
Fixes a broken page.
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2008-03-19 13:31:22 UTC (rev 1774)
+++ mgmt/cumin/python/cumin/widgets.py 2008-03-19 13:31:48 UTC (rev 1775)
@@ -78,10 +78,11 @@
super(CuminFrame, self).do_process(session, *args)
def render_href(self, session, *args):
- branch = session.branch()
- self.page().set_current_frame(branch, self)
- self.show_view(branch)
- return branch.marshal()
+ if self.get_object(session):
+ 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