X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/f9904f2409d8fdc314676c624a414c27170c1551..eabe84bd3f3ea514893ec700d598a06c2418f37e:/code/templates/functions.mako diff --git a/code/templates/functions.mako b/code/templates/functions.mako index f5a9166..7b46a35 100644 --- a/code/templates/functions.mako +++ b/code/templates/functions.mako @@ -15,12 +15,12 @@ onchange="${onchange}"\ <%def name="cdromList(default='', onchange=None)"> -${databaseList(sorted(database.CDROM.query(), key=lambda x: x.description), +${databaseList(sorted(database.CDROM.query, key=lambda x: x.description), default, onchange, 'cdrom', 'cdromlist', 'cdrom_id', 'description')|n} <%def name="autoList(default='', onchange=None)"> -${databaseList(sorted(database.Autoinstall.query(), key=lambda x: x.description), +${databaseList(sorted(database.Autoinstall.query, key=lambda x: x.description), default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')|n}