pyfarm.models.user module¶
Permissions¶
Stores users and their roles in the database.
-
class
pyfarm.models.user.
User
(**kwargs)[source]¶ Bases:
flask_sqlalchemy.Model
,flask_login.UserMixin
,pyfarm.models.core.mixins.ReprMixin
Stores information about a user including the roles they belong to
-
REPR_COLUMNS
= ('id', 'username')¶
-
active
¶ Enables or disables a particular user across the entire system
-
email
¶ Contact email for registration and possible notifications
-
expiration
¶ User expiration. If this value is set then the user will no longer be able to access PyFarm past the expiration.
-
has_roles
(allowed=None, required=None)[source]¶ checks the provided arguments against the roles assigned
-
id
¶
-
jobs
¶
-
last_login
¶ The last date that this user was logged in.
-
onetime_code
¶ SHA256 one time use code which can be used for unique urls such as for password resets.
-
password
¶ The password used to login
-
roles
¶
-
subscribed_jobs
¶
-
username
¶ The username used to login.
-