Bases: stalker.models.entity.Entity, stalker.models.mixins.ACLMixin
The user class is designed to hold data about a User in the system.
Note
New to version 0.2.0 users can be assigned to a Task as a Watcher. Which can be used to inform the users in watchers list about the updates of certain Tasks.
Note
It is now possible to define Vacations per user.
Note
Note
| Parameters: |
|
|---|
Methods
| __init__([name, login, email, password, ...]) | |
| check_password(raw_password) | Checks the given raw_password. |
Attributes
| alternative_resource_in_tasks | |
| companies | A descriptor that presents a read/write view of an object attribute. |
| company_role | A list of Clients that this user is a part of. |
| computed_resource_in_tasks | |
| created_by | The User who has created this object. |
| created_by_id | The id of the User who has created this entity. |
| date_created | A datetime.datetime instance showing the creation date and time of this object. |
| date_updated | A datetime.datetime instance showing the update date and time of this object. |
| department_role | A list of Departments that |
| departments | A descriptor that presents a read/write view of an object attribute. |
| description | Description of this object. |
| efficiency | |
| email of the user, accepts string | |
| entities_created | |
| entities_updated | |
| entity_id | |
| entity_type | |
| generic_data | This attribute can hold any kind of data which exists in SOM. |
| generic_text | This attribute can hold any text. |
| groups | Permission groups that this users is a member of. |
| html_class | |
| html_style | |
| id | |
| last_login | The last login time of this user. |
| login | The login name of the user. |
| metadata | A collection of Table objects and their associated schema constructs. |
| name | Name of this object |
| nice_name | Nice name of this object. |
| notes | All the Notess attached to this entity. |
| open_tickets | The list of open Tickets that this user has. |
| password | The password of the user. |
| permissions | |
| plural_class_name | the plural name of this class |
| project_role | |
| projects | A descriptor that presents a read/write view of an object attribute. |
| query | ORM-level SQL construction object. |
| rate | |
| responsible_of | A list of Task instances that this user is responsible of. |
| tags | A list of tags attached to this object. |
| tasks | Tasks assigned to this user. |
| thumbnail | |
| thumbnail_id | |
| tickets | The list of Tickets that this user has. |
| time_logs | A list of TimeLog instances which holds the time logs created for this User. |
| tjp_id | returns TaskJuggler compatible id |
| to_tjp | outputs a TaskJuggler formatted string |
| type | The type of the object. |
| type_id | The id of the Type of this entity. |
| updated_by | The User who has updated this object. |
| updated_by_id | The id of the User who has updated this entity. |
| user_id | |
| vacations | A list of Vacation instances |
| watching | Taskss that this user is |
A list of Departments that this user is a part of
The login name of the user.
Can not be empty.
email of the user, accepts string
The password of the user.
It is scrambled before it is stored.
The last login time of this user.
It is an instance of datetime.datetime class.
Checks the given raw_password.
Checks the given raw_password with the current Users objects encrypted password.
Checks the given raw password with the given encrypted password. Handles the encryption process behind the scene.
The list of Tickets that this user has.
returns a list of Ticket instances which this user is the owner of.
The list of open Tickets that this user has.
returns a list of Ticket instances which has a status of Open that this user is assigned as the owner.
A datetime.datetime instance showing the creation date and time of this object.
A datetime.datetime instance showing the update date and time of this object.
Description of this object.
This attribute can hold any kind of data which exists in SOM.
This attribute can hold any text.
Name of this object
Nice name of this object.
It has the same value with the name (contextually) but with a different format like, all the white spaces replaced by underscores (“_”), all the CamelCase form will be expanded by underscore (_) characters and it is always lower case.
All the Notess attached to this entity.
It is a list of Note instances or an empty list, setting it to None will raise a TypeError.
the plural name of this class
A list of tags attached to this object.
It is a list of Tag instances which shows the tags of this object
returns TaskJuggler compatible id
The type of the object.
It is an instance of Type with a proper Type.target_entity_type.