X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/2583876e634ec708d02cfb57e8a8482c68002a77..f6bddba1c55448fae6674bb03838fceb4bd982ba:/code/templates/functions.mako diff --git a/code/templates/functions.mako b/code/templates/functions.mako index 99c0d30..a72648a 100644 --- a/code/templates/functions.mako +++ b/code/templates/functions.mako @@ -39,3 +39,13 @@ ${databaseList(sorted(database.Autoinstall.query(), key=lambda x: x.description) % endif + +<%! +def jquote(string): + return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" +%> + +<%def name="helppopup(subj)"> +## Return HTML code for a (?) link to a specified help topic +(?) +