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 ERROR level.

INFO(request, message, extra_tags='', fail_silently=False)

Adds a message with the INFO level.

MESSAGE_LEVELS = {'success': <function success at 0x7f19bde1d0c8>, 'error': <function error at 0x7f19bde1d1b8>, 'info': <function info at 0x7f19bdf54488>, 'warning': <function warning at 0x7f19bde1d140>}
SUCCESS(request, message, extra_tags='', fail_silently=False)

Adds a message with the SUCCESS level.

WARNING(request, message, extra_tags='', fail_silently=False)

Adds a message with the WARNING level.

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

Previous topic

The horizon.exceptions Module

Next topic

The horizon.context_processors Module

Project Source

This Page