Author: croberts
Date: 2011-06-02 16:24:51 +0000 (Thu, 02 Jun 2011)
New Revision: 4800
Modified:
trunk/cumin/python/cumin/inventory/system.py
Log:
To address BZ
https://bugzilla.redhat.com/show_bug.cgi?id=707584 I have created a new
class (from ObjectSlector) that will give us a selector table without the checkboxes that
serve no purpose on the inventory page.
Modified: trunk/cumin/python/cumin/inventory/system.py
===================================================================
--- trunk/cumin/python/cumin/inventory/system.py 2011-06-02 14:00:58 UTC (rev 4799)
+++ trunk/cumin/python/cumin/inventory/system.py 2011-06-02 16:24:51 UTC (rev 4800)
@@ -1,6 +1,6 @@
from cumin.grid.slot import SlotMap, SlotMapPage
-from cumin.objectselector import ObjectSelector, ObjectLinkColumn
+from cumin.objectselector import ObjectSelector, ObjectLinkColumn, ObjectTable
from cumin.objectframe import ObjectFrame
from cumin.stat import StatSet, StatFlashChart
from cumin.formats import fmt_bytes
@@ -12,7 +12,14 @@
strings = StringCatalog(__file__)
-class SystemSelector(ObjectSelector):
+class ObjectSelectorTableNoCheckboxes(ObjectSelector):
+ def __init__(self, app, name, cls):
+ super(ObjectSelectorTableNoCheckboxes, self).__init__(app, name, cls)
+
+ def create_table(self, app, name, cls):
+ return ObjectTable(app, name, cls)
+
+class SystemSelector(ObjectSelectorTableNoCheckboxes):
def __init__(self, app, name):
cls = app.model.com_redhat_sesame.Sysimage