X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/7ab93691b4b6a45e99f78b37796413c5f24629a4..82e153ac0aa4f3697db9d799a42fee4fcc198826:/code/templates/functions.tmpl diff --git a/code/templates/functions.tmpl b/code/templates/functions.tmpl index 9bf6cf8..86dc772 100644 --- a/code/templates/functions.tmpl +++ b/code/templates/functions.tmpl @@ -20,14 +20,14 @@ onchange="$onchange"#slurp #def cdromList($default="", $onchange=None) #filter None -$databaseList(sorted($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($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 @@ -37,7 +37,7 @@ $databaseList(sorted($database.Autoinstall.select(), key=lambda x: x.description #end for #end def