[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci ChangeLog TODO site/luci/Extensions ...



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic sourceware org	2006-07-12 23:12:01

Modified files:
	luci           : ChangeLog TODO 
	luci/site/luci/Extensions: StorageReport.py 
	                           conga_storage_constants.py 

Log message:
	luci storage: use pretty properties' names

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/ChangeLog.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/TODO.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_storage_constants.py.diff?cvsroot=cluster&r1=1.1&r2=1.2

--- conga/luci/ChangeLog	2006/07/05 21:44:07	1.1
+++ conga/luci/ChangeLog	2006/07/12 23:12:00	1.2
@@ -1 +1,5 @@
 
+
+2006-07-12  Stanko Kupcevic <kupcevic redhat com> 
+   * use pretty properties' names
+
--- conga/luci/TODO	2006/07/05 21:44:07	1.1
+++ conga/luci/TODO	2006/07/12 23:12:00	1.2
@@ -2,8 +2,15 @@
 Storage:
  - commit and commit errors
  - add sources
- - pretty prop names
  - SIZE
+ - properties styling
+ - cylinder labels
+
 
 Cluster:
  - deploy-node/cluster
+
+
+
+Homebase:
+
--- conga/luci/site/luci/Extensions/StorageReport.py	2006/05/30 20:17:21	1.1
+++ conga/luci/site/luci/Extensions/StorageReport.py	2006/07/12 23:12:01	1.2
@@ -1550,7 +1550,7 @@
         else:
             data[name] = {'type'        : d_type,
                           'value'       : d_value,
-                          'pretty_name' : name,
+                          'pretty_name' : get_pretty_prop_name(name),
                           'units'       : d_units,
                           'validation'  : validation_data}
         pass
--- conga/luci/site/luci/Extensions/conga_storage_constants.py	2006/05/30 20:17:21	1.1
+++ conga/luci/site/luci/Extensions/conga_storage_constants.py	2006/07/12 23:12:01	1.2
@@ -80,3 +80,63 @@
                        MAPPER_MULTIPATH_TYPE   : 'Multipath',
                        MAPPER_CRYPTO_TYPE      : 'Encryption', 
                        MAPPER_iSCSI_TYPE       : 'iSCSI'}
+
+
+
+def get_pretty_prop_name(name):
+    PRETTY_PROP_NAMES = {'active'                  : "Active",
+                         'attrs'                   : 'Attributes',
+                         'bd'                      : "Block Device",
+                         'block_count'             : "Number of Blocks",
+                         'block_size'              : "Block Size",
+                         'bootable'                : "Bootable",
+                         'clustered'               : "Clustered",
+                         'dir_index'               : "Use Hashed Binary Trees",
+                         'disklabel'               : "Partition Table Type",
+                         'extents_free'            : "Free Extents",
+                         'extent_size'             : "Extent Size",
+                         'extents_total'           : "Total Extents",
+                         'extents_used'            : "Used Extents",
+                         'failed'                  : "Failed",
+                         'format'                  : "Format",
+                         'fstab'                   : "List in /etc/fstab", 
+                         'fstabpoint'              : "/etc/fstab Mountpoint", 
+                         'has_journal'             : "Journaling Enabled",
+                         'label'                   : "Label",
+                         'level'                   : "Level",
+                         'lvname'                  : "Logical Volume Name",
+                         'max_lvs'                 : "Maximum Logical Volumes",
+                         'max_pvs'                 : "Maximum Physical Volumes",
+                         'max_sources'             : "Maximum Disks",
+                         'min_sources'             : "Minimum Disks",
+                         'mirrored'                : "Mirrored",
+                         'model'                   : "Model",
+                         'mount'                   : "Mount",
+                         'mountpoint'              : "Mountpoint", 
+                         'num_devices'             : "Number of Devices",
+                         'num_spares'              : "Number of Spares",
+                         'partition_begin'         : "Partition Begin",
+                         'partition_num'           : "Partition Number",
+                         'partition_type'          : "Partition Type",
+                         'path'                    : "Path",
+                         'raid'                    : "Raid",
+                         'raid_level'              : "Raid Level",
+                         'removable'               : "Removable",
+                         'scsi_bus'                : "SCSI Address",
+                         'scsi_id'                 : "SCSI ID",
+                         'size'                    : "Size",
+                         'size_free'               : "Unused",
+                         'snapshot'                : "Snapshot",
+                         'snapshot_origin'         : "Snapshot Origin",
+                         'snapshots'               : "Snapshots",
+                         'snapshot_usage_percent'  : "Snapshot Usage",
+                         'state'                   : "State",
+                         'swapon'                  : "Active Swap",
+                         'type'                    : "Type",
+                         'uuid'                    : "UUID",
+                         'vendor'                  : "Vendor",
+                         'vgname'                  : "Volume Group Name"}
+    
+    if name in PRETTY_PROP_NAMES:
+        return PRETTY_PROP_NAMES[name]
+    return name


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]