From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 15 Oct 2006 05:44:04 -0000 Subject: [Cluster-devel] conga/luci site/luci/Extensions/StorageReport. ... Message-ID: <20061015054404.21674.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2006-10-15 05:44:03 Modified files: luci/site/luci/Extensions: StorageReport.py luci/storage : mappings_provider Log message: luci storage: add 'new logical volume' button to VG view Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&r1=1.15&r2=1.16 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/mappings_provider.diff?cvsroot=cluster&r1=1.3&r2=1.4 --- conga/luci/site/luci/Extensions/StorageReport.py 2006/10/15 05:09:46 1.15 +++ conga/luci/site/luci/Extensions/StorageReport.py 2006/10/15 05:44:03 1.16 @@ -476,6 +476,15 @@ 'msg' : 'Are you sure you want to remove ' + pretty_type + ' \\\'' + pretty_name + '\\\'?', 'link' : ''} actions.append(action) + if type == MAPPER_VG_TYPE: + for nt in mapper_ret['new_targets']: + if nt['props']['snapshot']['value'] == 'false': + if nt['new']: + action = {'name' : 'New Logical Volume', + 'msg' : '', + 'link' : './?' + PAGETYPE + '=' + VIEW_BD + '&' + PT_MAPPER_ID + '=' + mapper_ret['mapper_id'] + '&' + PT_MAPPER_TYPE + '=' + mapper_ret['mapper_type'] + '&' + PT_PATH + '=' + nt['path']} + actions.append(action) + break mapper_ret['actions'] = actions if type == MAPPER_VG_TYPE: --- conga/luci/storage/mappings_provider 2006/10/15 05:09:46 1.3 +++ conga/luci/storage/mappings_provider 2006/10/15 05:44:03 1.4 @@ -250,7 +250,7 @@ @@ -294,7 +294,7 @@