geonature.core.notifications.admin

Module Contents

Classes

NotificationTemplateAdmin

SQLAlchemy model view

NotificationCategoryAdmin

SQLAlchemy model view

NotificationMethodAdmin

SQLAlchemy model view

class geonature.core.notifications.admin.NotificationTemplateAdmin(model, session, name=None, category=None, endpoint=None, url=None, static_folder=None, menu_class_name=None, menu_icon_type=None, menu_icon_value=None)[source]

Bases: geonature.core.admin.utils.CruvedProtectedMixin, flask_admin.contrib.sqla.ModelView

SQLAlchemy model view

Usage sample:

admin = Admin()
admin.add_view(ModelView(User, db.session))
module_code = 'ADMIN'[source]
object_code = 'NOTIFICATIONS'[source]
column_list = ('code_category', 'code_method', 'content')[source]
column_labels[source]
form_columns = ('category', 'method', 'content')[source]
form_args[source]
class geonature.core.notifications.admin.NotificationCategoryAdmin(model, session, name=None, category=None, endpoint=None, url=None, static_folder=None, menu_class_name=None, menu_icon_type=None, menu_icon_value=None)[source]

Bases: geonature.core.admin.utils.CruvedProtectedMixin, flask_admin.contrib.sqla.ModelView

SQLAlchemy model view

Usage sample:

admin = Admin()
admin.add_view(ModelView(User, db.session))
module_code = 'ADMIN'[source]
object_code = 'NOTIFICATIONS'[source]
column_list = ('code', 'label', 'description')[source]
form_columns = ('code', 'label', 'description')[source]
form_args[source]
class geonature.core.notifications.admin.NotificationMethodAdmin(model, session, name=None, category=None, endpoint=None, url=None, static_folder=None, menu_class_name=None, menu_icon_type=None, menu_icon_value=None)[source]

Bases: geonature.core.admin.utils.CruvedProtectedMixin, flask_admin.contrib.sqla.ModelView

SQLAlchemy model view

Usage sample:

admin = Admin()
admin.add_view(ModelView(User, db.session))
module_code = 'ADMIN'[source]
object_code = 'NOTIFICATIONS'[source]
column_list = ('code', 'label', 'description')[source]
form_columns = ('code', 'label', 'description')[source]
form_args[source]