The horizon.notifications ModuleΒΆ
-
class
horizon.notifications.JSONMessage(path, fail_silently=False)[source] Bases:
object-
ERROR(request, message, extra_tags='', fail_silently=False) Adds a message with the
ERRORlevel.
-
INFO(request, message, extra_tags='', fail_silently=False) Adds a message with the
INFOlevel.
-
MESSAGE_LEVELS= {'info': <function info at 0x7fd1429e7758>, 'warning': <function warning at 0x7fd1429e7848>, 'success': <function success at 0x7fd1429e77d0>, 'error': <function error at 0x7fd1429e78c0>}
-
SUCCESS(request, message, extra_tags='', fail_silently=False) Adds a message with the
SUCCESSlevel.
-
WARNING(request, message, extra_tags='', fail_silently=False) Adds a message with the
WARNINGlevel.
-
load()[source] Read and parse the message file.
-
send_message(request)[source]
-
-
horizon.notifications.process_message_notification(request, messages_path)[source] Process all the msg file found in the message directory