backend.globaleaks.handlers.admin.notification

Module Contents

Classes

NotificationInstance Manage Notification settings (account details and template)

Functions

db_get_notification(session, tid, language) Transaction to get the notification settings for the specified tenant
update_notification(session, tid, request, language)
backend.globaleaks.handlers.admin.notification.db_get_notification(session, tid, language)[source]

Transaction to get the notification settings for the specified tenant

Parameters:
  • session – An ORM session
  • tid – A tenant ID
  • language – The language to be used in the serialization
Returns:

the serialization of notification settings for the specified tenant

backend.globaleaks.handlers.admin.notification.update_notification(session, tid, request, language)[source]
class backend.globaleaks.handlers.admin.notification.NotificationInstance[source]

Bases: globaleaks.handlers.base.BaseHandler

Manage Notification settings (account details and template)

check_roles = admin[source]
get(self)[source]
put(self)[source]

Changes the node notification settings.