geonature.core.gn_permissions.models

Contenu

geonature.core.gn_permissions.models#

Models of gn_permissions schema

Attributes#

Classes#

Functions#

_nice_order(model, qs)

Module Contents#

class geonature.core.gn_permissions.models.PermFilterType[source]#

Bases: geonature.utils.env.db.Model

__tablename__ = 'bib_filters_type'[source]#
__table_args__[source]#
id_filter_type[source]#
code_filter_type[source]#
label_filter_type[source]#
description_filter_type[source]#
class geonature.core.gn_permissions.models.PermScope[source]#

Bases: geonature.utils.env.db.Model

__tablename__ = 'bib_filters_scope'[source]#
__table_args__[source]#
value[source]#
label[source]#
description[source]#
__str__()[source]#
class geonature.core.gn_permissions.models.PermAction[source]#

Bases: geonature.utils.env.db.Model

__tablename__ = 'bib_actions'[source]#
__table_args__[source]#
id_action[source]#
code_action[source]#
description_action[source]#
__str__()[source]#
geonature.core.gn_permissions.models.cor_object_module[source]#
class geonature.core.gn_permissions.models.PermObject[source]#

Bases: geonature.utils.env.db.Model

__tablename__ = 't_objects'[source]#
__table_args__[source]#
id_object[source]#
code_object[source]#
description_object[source]#
__str__()[source]#
geonature.core.gn_permissions.models.TObjects[source]#
geonature.core.gn_permissions.models._nice_order(model, qs)[source]#
class geonature.core.gn_permissions.models.PermissionAvailable[source]#

Bases: geonature.utils.env.db.Model

__tablename__ = 't_permissions_available'[source]#
__table_args__[source]#
id_module[source]#
id_object[source]#
id_action[source]#
label[source]#
module[source]#
object[source]#
action[source]#
scope_filter[source]#
sensitivity_filter[source]#
filters_fields[source]#
property filters[source]#
__str__()[source]#
static nice_order(**kwargs)[source]#
class geonature.core.gn_permissions.models.PermFilter(name, value)[source]#
name[source]#
value[source]#
__str__()[source]#
class geonature.core.gn_permissions.models.Permission[source]#

Bases: geonature.utils.env.db.Model

__tablename__ = 't_permissions'[source]#
__table_args__[source]#
id_permission[source]#
id_role[source]#
id_action[source]#
id_module[source]#
id_object[source]#
role[source]#
action[source]#
module[source]#
object[source]#
scope_value[source]#
scope[source]#
sensitivity_filter[source]#
availability[source]#
filters_fields[source]#
static __SCOPE_le__(a, b)[source]#
static __SENSITIVITY_le__(a, b)[source]#
static __default_le__(a, b)[source]#
__le__(other)[source]#

Return True if this permission is supersed by “other” permission. This requires all filters to be supersed by “other” filters.

property filters[source]#
has_other_filters_than(*expected_filters)[source]#
nice_order(**kwargs)[source]#