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.Base

The SQLAlchemy declarative model class for a Permission object 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.Base

The SQLAlchemy declarative model class for a RolePermission object holds information about permissions linked to a specific role.

perm_id

The reference to the Permission database table.

role_id

The reference to the Role database table.