hawat.models.user module

This module contains user account model for Hawat.

class hawat.models.user.GuiUserModel(**kwargs)[source]

Bases: mentat.datatype.sqldb.UserModel

Custom user account model for Hawat. The implementation is based on the mentat.datatype.sqldb.UserModel and basically just adds couple of methods required by the flask_login extension.

apikey
changelogs
createtime

Common table column for object creation timestamps, implementation is based on declared_attr pattern.

email
enabled
fullname
get_id()[source]

Mandatory interface required by the flask_login extension.

has_no_role()[source]

Returns True if the user has no role.

has_role(role)[source]

Returns True if the user identifies with the specified role.

Parameters

role (str) – A role name.

id

Common table column for unique numeric identifier, implementation is based on declared_attr pattern.

is_active

Mandatory interface required by the flask_login extension.

is_anonymous

Mandatory interface required by the flask_login extension.

is_authenticated

Mandatory interface required by the flask_login extension.

locale
login
logintime
managements
memberships
organization
roles
timezone