mechanism
svn path=/trunk/packages/sipb-xen-www/; revision=540
has_vnc = {}
xmlist = g.xmlist
checkpoint.checkpoint('Got uptimes')
has_vnc = {}
xmlist = g.xmlist
checkpoint.checkpoint('Got uptimes')
+ can_clone = (controls.getList([Machine.get_by(name='ice3')])) == {}
for m in machines:
if m not in xmlist:
has_vnc[m] = 'Off'
for m in machines:
if m not in xmlist:
has_vnc[m] = 'Off'
max_disk=max_disk,
defaults=defaults,
machines=machines,
max_disk=max_disk,
defaults=defaults,
machines=machines,
+ has_vnc=has_vnc,
+ can_clone=can_clone)
return d
def listVms(user, fields):
return d
def listVms(user, fields):
#end filter
<tr>
<td>Clone image?</td>
#end filter
<tr>
<td>Clone image?</td>
<td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" onchange="onclone(event)"/>
(experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.)
<script type='text/javascript'>function onclone(e){ document.getElementById('cdromlist').value = ''; }</script></td>
<td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" onchange="onclone(event)"/>
(experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.)
<script type='text/javascript'>function onclone(e){ document.getElementById('cdromlist').value = ''; }</script></td>
+#else
+ <td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" disabled="disabled"/> Image cloning is currently disabled for maintenence</td>
+#end if
</tr>
#filter None
$errorRow('autoinstall', $err)
</tr>
#filter None
$errorRow('autoinstall', $err)