X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/7b924b8f4ec3c62b70a012f7d417beb230db8965..8aeed589b9cbcd2fbdac6424ac4ab2dd6cb00532:/code/templates/functions.tmpl?ds=inline diff --git a/code/templates/functions.tmpl b/code/templates/functions.tmpl index 2ae2266..86dc772 100644 --- a/code/templates/functions.tmpl +++ b/code/templates/functions.tmpl @@ -20,24 +20,24 @@ onchange="$onchange"#slurp #def cdromList($default="", $onchange=None) #filter None -$databaseList(sorted($sipb_xen_database.CDROM.select(), key=lambda x: x.description), +$databaseList(sorted($database.CDROM.query(), key=lambda x: x.description), default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description') #end filter #end def #def autoList($default="", $onchange=None) #filter None -$databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.description), +$databaseList(sorted($database.Autoinstall.query(), key=lambda x: x.description), 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'), ) #end for #end def @@ -60,4 +60,4 @@ $databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.de #filter None $full_body #end filter -#end filter \ No newline at end of file +#end filter