Author: justi9
Date: 2008-03-31 15:42:02 -0400 (Mon, 31 Mar 2008)
New Revision: 1815
Modified:
mgmt/cumin/python/cumin/system.py
mgmt/cumin/python/cumin/system.strings
Log:
Flesh out the system view with all the currently available system
attributes.
Modified: mgmt/cumin/python/cumin/system.py
===================================================================
--- mgmt/cumin/python/cumin/system.py 2008-03-31 16:35:32 UTC (rev 1814)
+++ mgmt/cumin/python/cumin/system.py 2008-03-31 19:42:02 UTC (rev 1815)
@@ -72,6 +72,21 @@
def render_title(self, session, system):
return "System '%s'" % system.sysId
+ def render_address(self, session, system):
+ return system.nodeName
+
+ def render_kernel(self, session, system):
+ return system.osName
+
+ def render_kernel_release(self, session, system):
+ return system.release
+
+ def render_kernel_version(self, session, system):
+ return system.version
+
+ def render_architecture(self, session, system):
+ return system.machine
+
def render_created_deleted(self, session, system):
return "%s – %s" % (fmt_datetime(system.creationTime),
fmt_datetime(system.deletionTime))
Modified: mgmt/cumin/python/cumin/system.strings
===================================================================
--- mgmt/cumin/python/cumin/system.strings 2008-03-31 16:35:32 UTC (rev 1814)
+++ mgmt/cumin/python/cumin/system.strings 2008-03-31 19:42:02 UTC (rev 1815)
@@ -28,6 +28,10 @@
<h1><img src="resource?name=system-36.png"/>{title}</h1>
<table class="props">
+ <tr><th>Address</th><td>{address}</td></tr>
+ <tr><th>Kernel</th><td>{kernel}
{kernel_release}<br/>{kernel_version}</td></tr>
+
<tr><th>Architecture</th><td>{architecture}</td></tr>
+ <tr><th>Updated</th><td>{updated}</td></tr>
<tr><th>Created –
Deleted</th><td>{created_deleted}</td></tr>
<tr><th>Updated</th><td>{updated}</td></tr>
</table>
Show replies by date