All of lore.kernel.org
 help / color / mirror / Atom feed
From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci ChangeLog TODO site/luci/Extensions ...
Date: 12 Jul 2006 23:12:03 -0000	[thread overview]
Message-ID: <20060712231203.17223.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic at 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



             reply	other threads:[~2006-07-12 23:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12 23:12 kupcevic [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-18 20:33 [Cluster-devel] conga/luci ChangeLog TODO site/luci/Extensions kupcevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060712231203.17223.qmail@sourceware.org \
    --to=kupcevic@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.