Author: justi9
Date: 2008-04-08 12:25:12 -0400 (Tue, 08 Apr 2008)
New Revision: 1863
Modified:
mgmt/cumin/python/cumin/broker.py
Log:
Improve the way we generate broker links in BrokerSet
Modified: mgmt/cumin/python/cumin/broker.py
===================================================================
--- mgmt/cumin/python/cumin/broker.py 2008-04-08 16:13:10 UTC (rev 1862)
+++ mgmt/cumin/python/cumin/broker.py 2008-04-08 16:25:12 UTC (rev 1863)
@@ -86,10 +86,10 @@
def render_content(self, session, data):
reg = BrokerRegistration.get(data["id"])
- branch = session.branch()
- frame = self.app.model.broker_registration.show_object(branch, reg)
- frame.show_view(branch)
- return fmt_olink(branch, reg, name=data["name"])
+ cls = self.app.model.get_class_by_object(reg)
+ href = cls.get_object_href(session, reg)
+ name = data["name"]
+ return fmt_link(href, name)
class GroupsColumn(SqlTableColumn):
def render_title(self, session, data):
Show replies by date