geonature.core.gn_permissions.admin¶
Classes¶
Overrides the QuerySelectField class from flask admin to allow |
|
Functions¶
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- class geonature.core.gn_permissions.admin.RoleFilter[source]¶
Bases:
geonature.core.admin.utils.DynamicOptionsMixin
,flask_admin.contrib.sqla.filters.FilterEqual
- class geonature.core.gn_permissions.admin.ModuleFilter[source]¶
Bases:
geonature.core.admin.utils.DynamicOptionsMixin
,flask_admin.contrib.sqla.filters.FilterEqual
- class geonature.core.gn_permissions.admin.ObjectFilter[source]¶
Bases:
geonature.core.admin.utils.DynamicOptionsMixin
,flask_admin.contrib.sqla.filters.FilterEqual
- class geonature.core.gn_permissions.admin.ActionFilter[source]¶
Bases:
geonature.core.admin.utils.DynamicOptionsMixin
,flask_admin.contrib.sqla.filters.FilterEqual
- class geonature.core.gn_permissions.admin.ScopeFilter[source]¶
Bases:
geonature.core.admin.utils.DynamicOptionsMixin
,flask_admin.contrib.sqla.filters.FilterEqual
- geonature.core.gn_permissions.admin.permissions_count_formatter(view, context, model, name)[source]¶
- class geonature.core.gn_permissions.admin.OptionSelect2Widget[source]¶
Bases:
flask_admin.form.widgets.Select2Widget
- class geonature.core.gn_permissions.admin.OptionQuerySelectField(*args, **kwargs)[source]¶
Bases:
flask_admin.contrib.sqla.fields.QuerySelectField
Overrides the QuerySelectField class from flask admin to allow other attributes on a select option.
options_additional_values is added in form_args, it is a list of strings, each element is the name of the attribute in the model which will be added on the option
- class geonature.core.gn_permissions.admin.UserAjaxModelLoader[source]¶
Bases:
flask_admin.contrib.sqla.ajax.QueryAjaxModelLoader
- class geonature.core.gn_permissions.admin.ObjectAdmin[source]¶
Bases:
geonature.core.admin.utils.CruvedProtectedMixin
,flask_admin.contrib.sqla.ModelView
- class geonature.core.gn_permissions.admin.PermissionAdmin[source]¶
Bases:
geonature.core.admin.utils.CruvedProtectedMixin
,flask_admin.contrib.sqla.ModelView
- column_sortable_list = (('role', 'role.nom_complet'), ('module', 'module.module_code'), ('object',...[source]¶
- class geonature.core.gn_permissions.admin.PermissionAvailableAdmin[source]¶
Bases:
geonature.core.admin.utils.CruvedProtectedMixin
,flask_admin.contrib.sqla.ModelView
- column_sortable_list = (('module', 'module.module_code'), ('object', 'object.code_object'), ('action', 'action.code_action'))[source]¶
- class geonature.core.gn_permissions.admin.RolePermAdmin[source]¶
Bases:
geonature.core.admin.utils.CruvedProtectedMixin
,flask_admin.contrib.sqla.ModelView
- class geonature.core.gn_permissions.admin.GroupPermAdmin[source]¶
Bases:
RolePermAdmin
- class geonature.core.gn_permissions.admin.UserPermAdmin[source]¶
Bases:
RolePermAdmin