<%page expression_filter="h"/> <%def name="databaseList(lst, default, onchange, name, id, valueattr, descattr)"> <%def name="cdromList(default='', onchange=None)"> ${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), default, onchange, 'autoinstall', 'autoinstalllist', 'autoinstall_id', 'description')|n} <%def name="vmTypeList(default=None)"> % for vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), ): % endfor <%def name="nicTypeList(default=None)"> % for nictype in (('e1000', 'Intel e1000'), ('pcnet', 'AMD PCNet'), ): % endfor <%def name="errorRow(value, err)"> % if err and err.err_field == value: ${str(err)} % endif <%! def jquote(string): return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" def nl2br(string): return string.replace('\n', '
') %> <%def name="helppopup(subj)"> ## Return HTML code for a (?) link to a specified help topic (?)