Ejemplo n.º 1
0
def ajax_message_read():
    response.set_content_type("application/json")
    try:
        notify.delete_gui_message(html.request.var('id'))
        html.write("OK")
    except Exception:
        if config.debug:
            raise
        html.write("ERROR")
Ejemplo n.º 2
0
def ajax_message_read():
    html.set_output_format("json")
    try:
        notify.delete_gui_message(html.request.var('id'))
        html.write("OK")
    except Exception:
        if config.debug:
            raise
        html.write("ERROR")
Ejemplo n.º 3
0
def ajax_delete_user_notification() -> None:
    msg_id = request.get_str_input_mandatory("id")
    notify.delete_gui_message(msg_id)