From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 10 Jan 2007 23:49:20 -0000 Subject: [Cluster-devel] conga/luci cluster/fence_device.js cluster/for ... Message-ID: <20070110234920.27684.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 Branch: RHEL5 Changes by: rmccabe at sourceware.org 2007-01-10 23:49:19 Modified files: luci/cluster : fence_device.js form-macros luci/site/luci/Extensions: cluster_adapters.py Log message: fixes related to bz212021 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/fence_device.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.2&r2=1.2.2.3 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.14&r2=1.90.2.15 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.120.2.17&r2=1.120.2.18 --- conga/luci/cluster/fence_device.js 2007/01/10 22:53:56 1.2.2.2 +++ conga/luci/cluster/fence_device.js 2007/01/10 23:49:18 1.2.2.3 @@ -208,13 +208,19 @@ { temp += ''; } else if (res_type == 'checkbox' || res_type == 'radio') { - if (input_elem[j].checked) - temp += ''; + } } } + var select_elem = form[i].getElementsByTagName('select'); for (var j = 0 ; j < select_elem.length ; j++) { temp += ''; --- conga/luci/cluster/form-macros 2007/01/10 22:53:56 1.90.2.14 +++ conga/luci/cluster/form-macros 2007/01/10 23:49:18 1.90.2.15 @@ -2039,20 +2039,28 @@ Password - Authentication Type - + + + Use Lanplus - + + + + + + --- conga/luci/site/luci/Extensions/cluster_adapters.py 2007/01/10 22:53:56 1.120.2.17 +++ conga/luci/site/luci/Extensions/cluster_adapters.py 2007/01/10 23:49:18 1.120.2.18 @@ -1613,7 +1613,7 @@ # user could not have edited it (without playing dirty # games), so it's safe to pull the existing entry from # the model. All we need is the device name. - pass + del fence_form['sharable'] else: # An existing non-shared device; build up the device # from scratch since the user could have edited it. @@ -1665,6 +1665,8 @@ # . All we need for that is the device name. if not 'sharable' in fence_form: instance_list.append({'name': fencedev_name }) + else: + del fence_form['sharable'] if fencedev_obj is not None: # If a device with this name exists in the model @@ -4387,7 +4389,7 @@ last_kid_fd = None level1.append(fencedev) else: #This dev is shared - if (last_kid_fd is not None) and (fd.getName().strip() == last_kid_fd.getName().strip()): #just append a new instance struct to last_kid_fd + if (last_kid_fd is not None) and (fd.getName().strip() == last_kid_fd['name'].strip()): #just append a new instance struct to last_kid_fd instance_struct = {} instance_struct['id'] = str(minor_num) minor_num = minor_num + 1 @@ -4400,7 +4402,7 @@ #Now just add this struct to last_kid_fd and reset last_kid_fd ilist = last_kid_fd['instance_list'] ilist.append(instance_struct) - last_kid_fd = fd + #last_kid_fd = fd continue else: #Shared, but not used above...so we need a new fencedev struct fencedev = {} @@ -4428,7 +4430,7 @@ instance_struct[kee] = kidattrs[kee] inlist.append(instance_struct) level1.append(fencedev) - last_kid_fd = fd + last_kid_fd = fencedev continue map['level1'] = level1 @@ -4494,7 +4496,7 @@ last_kid_fd = None level2.append(fencedev) else: #This dev is shared - if (last_kid_fd is not None) and (fd.getName().strip() == last_kid_fd.getName().strip()): #just append a new instance struct to last_kid_fd + if (last_kid_fd is not None) and (fd.getName().strip() == last_kid_fd['name'].strip()): #just append a new instance struct to last_kid_fd instance_struct = {} instance_struct['id'] = str(minor_num) minor_num = minor_num + 1 @@ -4507,7 +4509,7 @@ #Now just add this struct to last_kid_fd and reset last_kid_fd ilist = last_kid_fd['instance_list'] ilist.append(instance_struct) - last_kid_fd = fd + #last_kid_fd = fd continue else: #Shared, but not used above...so we need a new fencedev struct fencedev = {} @@ -4535,7 +4537,7 @@ instance_struct[kee] = kidattrs[kee] inlist.append(instance_struct) level2.append(fencedev) - last_kid_fd = fd + last_kid_fd = fencedev continue map['level2'] = level2