models Package¶
models Package¶
copyright: | © 2015 by CRS4. |
---|---|
license: | gpl-2, see License for more details. |
dispatcher initialization script This script provides the structure to the authentication layer
- class dispatcher.models.Role(**kwargs)[source]¶
Bases: flask_sqlalchemy.Model, flask_security.core.RoleMixin
User Role
- description¶
- id¶
- name¶
- class dispatcher.models.Token(**kwargs)[source]¶
Bases: flask_sqlalchemy.Model
- active¶
- creation_date¶
- id¶
- token¶
- user¶
- user_id¶
- class dispatcher.models.User(**kwargs)[source]¶
Bases: flask_sqlalchemy.Model, flask_security.core.UserMixin
User class inherited and overridden, in addition there is a username field, a new get_auth_token and a few other attributes
- active¶
- confirmed_at¶
- email¶
- static get(userid)[source]¶
Static method to search the database and see if userid exists. If it does exist then return a User Object. If not then return None as required by Flask-Login.
- id¶
- password¶
- roles¶
- username¶
populate Module¶
copyright: | © 2015 by CRS4. |
---|---|
license: | gpl-2, see License for more details. |
Provides routines to pre-populate the database