geonode.notifications_helper

Attributes

logger

E

M

notifications

has_notifications

notifications

Classes

NotificationsAppConfigBase

Base class for AppConfig notifications setup

Functions

call_celery(func)

send_now_notification(*args, **kwargs)

Simple wrapper around notifications.model send().

send_notification(*args, **kwargs)

Simple wrapper around notifications.model send().

queue_notification(*args, **kwargs)

get_notification_recipients(notice_type_label[, ...])

Get notification recipients

Module Contents

geonode.notifications_helper.logger[source]
geonode.notifications_helper.E[source]
geonode.notifications_helper.M[source]
geonode.notifications_helper.notifications = None[source]
geonode.notifications_helper.has_notifications[source]
geonode.notifications_helper.notifications[source]
class geonode.notifications_helper.NotificationsAppConfigBase[source]

Bases: django.apps.AppConfig

Base class for AppConfig notifications setup

You should subclass it and provide list of notifications in NOTIFICATIONS attribute to automatically register to post_migrate signal.

NOTIFICATIONS[source]
_get_logger()[source]
_register_notifications(*args, **kwargs)[source]
ready()[source]
geonode.notifications_helper.call_celery(func)[source]
geonode.notifications_helper.send_now_notification(*args, **kwargs)[source]

Simple wrapper around notifications.model send(). This can be called safely if notifications are not installed.

geonode.notifications_helper.send_notification(*args, **kwargs)[source]

Simple wrapper around notifications.model send(). This can be called safely if notifications are not installed.

geonode.notifications_helper.queue_notification(*args, **kwargs)[source]
geonode.notifications_helper.get_notification_recipients(notice_type_label, exclude_user=None, resource=None)[source]

Get notification recipients