geonature.core.notifications.models

Models of gn_notifications schema

Module Contents

Classes

NotificationMethod

The base class of the SQLAlchemy.Model declarative model class.

NotificationCategory

The base class of the SQLAlchemy.Model declarative model class.

NotificationTemplate

The base class of the SQLAlchemy.Model declarative model class.

Notification

The base class of the SQLAlchemy.Model declarative model class.

NotificationRule

The base class of the SQLAlchemy.Model declarative model class.

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

Bases: geonature.utils.env.db.Model

The base class of the SQLAlchemy.Model declarative model class.

To define models, subclass db.Model, not this. To customize db.Model, subclass this and pass it as model_class to SQLAlchemy. To customize db.Model at the metaclass level, pass an already created declarative model class as model_class.

property display[source]
__tablename__ = 'bib_notifications_methods'[source]
__table_args__[source]
code[source]
label[source]
description[source]
__str__()[source]

Return str(self).

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

Bases: geonature.utils.env.db.Model

The base class of the SQLAlchemy.Model declarative model class.

To define models, subclass db.Model, not this. To customize db.Model, subclass this and pass it as model_class to SQLAlchemy. To customize db.Model at the metaclass level, pass an already created declarative model class as model_class.

property display[source]
__tablename__ = 'bib_notifications_categories'[source]
__table_args__[source]
code[source]
label[source]
description[source]
__str__()[source]

Return str(self).

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

Bases: geonature.utils.env.db.Model

The base class of the SQLAlchemy.Model declarative model class.

To define models, subclass db.Model, not this. To customize db.Model, subclass this and pass it as model_class to SQLAlchemy. To customize db.Model at the metaclass level, pass an already created declarative model class as model_class.

__tablename__ = 'bib_notifications_templates'[source]
__table_args__[source]
code_category[source]
code_method[source]
content[source]
category[source]
method[source]
__str__()[source]

Return str(self).

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

Bases: geonature.utils.env.db.Model

The base class of the SQLAlchemy.Model declarative model class.

To define models, subclass db.Model, not this. To customize db.Model, subclass this and pass it as model_class to SQLAlchemy. To customize db.Model at the metaclass level, pass an already created declarative model class as model_class.

__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

The base class of the SQLAlchemy.Model declarative model class.

To define models, subclass db.Model, not this. To customize db.Model, subclass this and pass it as model_class to SQLAlchemy. To customize db.Model at the metaclass level, pass an already created declarative model class as model_class.

__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]
classmethod filter_by_role_with_defaults(*, query, id_role=None)[source]