Author: eallen
Date: 2009-08-13 09:11:24 -0400 (Thu, 13 Aug 2009)
New Revision: 3574
Modified:
mgmt/trunk/cumin/python/cumin/grid/negotiator.py
Log:
Use ItemTable instead of CuminItemTable to prevent the get_item_count from getting called
during do_process. This avoids making qmf calls every three seconds during the update.
Modified: mgmt/trunk/cumin/python/cumin/grid/negotiator.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/grid/negotiator.py 2009-08-12 19:58:32 UTC (rev 3573)
+++ mgmt/trunk/cumin/python/cumin/grid/negotiator.py 2009-08-13 13:11:24 UTC (rev 3574)
@@ -107,17 +107,18 @@
def render_content(self, session, group):
if group == self.parent.buttons_row:
return self.button.render(session)
+ elif group == self.parent.empty_row:
+ return ""
data = self.getter(session)
for x in data:
if x[0] == group:
return self.render_data(x)
-class NegotiatorOverviewTab(CuminItemTable):
+class NegotiatorOverviewTab(ItemTable):
def __init__(self, app, name, negotiator):
super(NegotiatorOverviewTab, self).__init__(app, name)
- self.update_enabled = False
self.defer_enabled = True
self.group_helper = GroupHelper(app, "groups", negotiator)
Show replies by date