Changeset 540 for trunk/packages
- Timestamp:
- May 31, 2008, 1:18:40 AM (17 years ago)
- Location:
- trunk/packages/sipb-xen-www/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r536 r540 204 204 xmlist = g.xmlist 205 205 checkpoint.checkpoint('Got uptimes') 206 can_clone = (controls.getList([Machine.get_by(name='ice3')])) == {} 206 207 for m in machines: 207 208 if m not in xmlist: … … 233 234 defaults=defaults, 234 235 machines=machines, 235 has_vnc=has_vnc) 236 has_vnc=has_vnc, 237 can_clone=can_clone) 236 238 return d 237 239 -
trunk/packages/sipb-xen-www/code/templates/list.tmpl
r536 r540 62 62 <tr> 63 63 <td>Clone image?</td> 64 #if $can_clone 64 65 <td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" onchange="onclone(event)"/> 65 66 (experimental; 1-2 minutes, and you have an etch machine; root pw is 'password'.) 66 67 <script type='text/javascript'>function onclone(e){ document.getElementById('cdromlist').value = ''; }</script></td> 68 #else 69 <td><input type="checkbox" name="clone_from" id="clone_from" value="ice3" disabled="disabled"/> Image cloning is currently disabled for maintenence</td> 70 #end if 67 71 </tr> 68 72 #filter None
Note: See TracChangeset
for help on using the changeset viewer.