Changeset 515 for trunk/packages


Ignore:
Timestamp:
May 9, 2008, 5:11:46 PM (17 years ago)
Author:
ecprice
Message:

Set the default vm type

Location:
trunk/packages/sipb-xen-www/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/main.py

    r510 r515  
    106106    autoinstall = ''
    107107    name = ''
     108    type = 'linux-hvm'
     109
    108110    def __init__(self, max_memory=None, max_disk=None, **kws):
    109         self.type = Type.get('linux-hvm')
    110111        if max_memory is not None:
    111112            self.memory = min(self.memory, max_memory)
  • trunk/packages/sipb-xen-www/code/templates/functions.tmpl

    r512 r515  
    3737<label>
    3838   <input #slurp
    39 #if $default == $vmtype then 'checked' else ''
     39#if $default == $vmtype[0] then 'checked' else ''
    4040 type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input>
    4141</label>
Note: See TracChangeset for help on using the changeset viewer.