X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/8837d33652d15c7656d6486d55c9d6bfaf342c2e..e5990205f8fad1c4299dd91729787d2b003c4081:/code/templates/functions.mako?ds=sidebyside diff --git a/code/templates/functions.mako b/code/templates/functions.mako index 068401f..7b46a35 100644 --- a/code/templates/functions.mako +++ b/code/templates/functions.mako @@ -15,19 +15,19 @@ 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} <%def name="vmTypeList(default=None)"> % for vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), ): % endfor @@ -50,5 +50,5 @@ def nl2br(string): <%def name="helppopup(subj)"> ## Return HTML code for a (?) link to a specified help topic -(?) +(?)