geonature.core.notifications.models

Models of gn_notifications schema

Classes

Module Contents

class geonature.core.notifications.models.NotificationMethod[source]

Bases: geonature.utils.env.db.Model

__tablename__ = 'bib_notifications_methods'[source]
__table_args__[source]
code[source]
label[source]
description[source]
property display[source]
__str__()[source]
class geonature.core.notifications.models.NotificationCategory[source]

Bases: geonature.utils.env.db.Model

__tablename__ = 'bib_notifications_categories'[source]
__table_args__[source]
code[source]
label[source]
description[source]
property display[source]
__str__()[source]
class geonature.core.notifications.models.NotificationTemplate[source]

Bases: geonature.utils.env.db.Model

__tablename__ = 'bib_notifications_templates'[source]
__table_args__[source]
code_category[source]
code_method[source]
content[source]
category[source]
method[source]
__str__()[source]
class geonature.core.notifications.models.Notification[source]

Bases: geonature.utils.env.db.Model

__tablename__ = 't_notifications'[source]
__table_args__[source]
id_notification[source]
id_role[source]
title[source]
content[source]
url[source]
code_status[source]
creation_date[source]
user[source]
class geonature.core.notifications.models.NotificationRule[source]

Bases: geonature.utils.env.db.Model

__tablename__ = 't_notifications_rules'[source]
__table_args__[source]
id[source]
id_role[source]
code_method[source]
code_category[source]
subscribed[source]
method[source]
category[source]
user[source]
filter_by_role_with_defaults(*, query, id_role=None)[source]