示例#1
0
def test_htmllib_integration(register_builtin_html):
    assert escaping.escape_attribute("") == ""
    assert escaping.escape_text("") == ""
示例#2
0
def make_confirmed_form_submit_link(*, form_name: str, button_name: str,
                                    message: str) -> PageMenuLink:
    return make_javascript_link(
        "cmk.page_menu.confirmed_form_submit(%s, %s, %s)" %
        (json.dumps(form_name), json.dumps(button_name),
         json.dumps(escaping.escape_text(message))))
示例#3
0
 def render(self, row, cell):
     return (None, "%s: %s" % \
         (escape_text(row["crash_exc_type"]), escape_text(row["crash_exc_value"])))
示例#4
0
 def render(self, row, cell):
     return (None, escape_text(row["crash_version"]))
示例#5
0
 def render(self, row, cell):
     return (None, escape_text(row["crash_type"]))
示例#6
0
文件: urls.py 项目: maxmalysh/checkmk
def make_confirm_link(*, url: str, message: str) -> str:
    return "javascript:cmk.forms.confirm_link(%s, %s),cmk.popup_menu.close_popup()" % (
        json.dumps(url),
        json.dumps(escape_text(message)),
    )