kepler.models.permission module¶
The module defines the classes for database models related to permissions.
-
class
kepler.models.permission.Permission(permission_id, name)¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
Permissionobject holds information about what the user with this permission is allowed to do and view.-
id¶ The permission ID.
-
name¶ The name of the permission.
-
-
class
kepler.models.permission.RolePermission(role_id, perm_id)¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe SQLAlchemy declarative model class for a
RolePermissionobject holds information about permissions linked to a specific role.-
perm_id¶ The reference to the
Permissiondatabase table.
-
role_id¶ The reference to the
Roledatabase table.
-