X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/f6bddba1c55448fae6674bb03838fceb4bd982ba..refs/heads/gdb-git:/code/templates/functions.mako?ds=inline diff --git a/code/templates/functions.mako b/code/templates/functions.mako index a72648a..f5a9166 100644 --- a/code/templates/functions.mako +++ b/code/templates/functions.mako @@ -27,7 +27,7 @@ ${databaseList(sorted(database.Autoinstall.query(), key=lambda x: x.description) <%def name="vmTypeList(default=None)"> % for vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), ): % endfor @@ -43,9 +43,12 @@ ${databaseList(sorted(database.Autoinstall.query(), key=lambda x: x.description) <%! 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 -(?) +(?)