Author: eallen
Date: 2012-12-18 18:20:52 +0000 (Tue, 18 Dec 2012)
New Revision: 5616
Modified:
trunk/cumin/python/cumin/messaging/broker.py
Log:
Fix for BZ 886942 - Duplicate links on acl and cluster pages. Overrode ObjectView class
for these and suppressed display of summary section.
Modified: trunk/cumin/python/cumin/messaging/broker.py
===================================================================
--- trunk/cumin/python/cumin/messaging/broker.py 2012-12-18 16:44:13 UTC (rev 5615)
+++ trunk/cumin/python/cumin/messaging/broker.py 2012-12-18 18:20:52 UTC (rev 5616)
@@ -157,6 +157,14 @@
def do_render(self, session):
return "This module is not enabled"
+class BrokerPluginView(ObjectView):
+ def render_context(self, session):
+ pass
+ def render_heading(self, session):
+ pass
+ def render_summary(self, session):
+ pass
+
class BrokerAccessControl(ModeSet):
def __init__(self, app, name, vhost):
super(BrokerAccessControl, self).__init__(app, name)
@@ -169,7 +177,7 @@
mode = ModuleNotEnabled(app, "notenabled")
self.add_mode(mode)
- self.view = ObjectView(app, "view", self.acl)
+ self.view = BrokerPluginView(app, "view", self.acl)
self.add_mode(self.view)
class AclModuleAttribute(Attribute):
@@ -199,7 +207,7 @@
self.notenabled = ModuleNotEnabled(app, "notenabled")
self.add_mode(self.notenabled)
- self.view = ObjectView(app, "view", self.cluster)
+ self.view = BrokerPluginView(app, "view", self.cluster)
self.add_mode(self.view)
class ClusteringModuleAttribute(Attribute):
Show replies by date