default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description')
#end filter
#end def
#def autoList($default="", $onchange=None)
#filter None
default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description')
#end filter
#end def
#def autoList($default="", $onchange=None)
#filter None
default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')
#end filter
#end def
#def vmTypeList($default=None)
default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')
#end filter
#end def
#def vmTypeList($default=None)
-#for $vmtype in sorted($sipb_xen_database.Type.select(), key=lambda x: x.description)
+#for $vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), )
-#if $default == $vmtype then 'checked' else ''
- type="radio" name="vmtype" value="${vmtype.type_id}">${vmtype.description}</input>
+#if $default == $vmtype[0] then 'checked' else ''
+ type="radio" name="vmtype" id="vmtype-${vmtype[0]}" value="${vmtype[0]}">${vmtype[1]}</input>