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")
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")
def ajax_delete_user_notification() -> None: msg_id = request.get_str_input_mandatory("id") notify.delete_gui_message(msg_id)