Bases: stalker.core.models.entity.Entity
The user class is designed to hold data about a User in the system.
Parameters: |
|
---|
Methods
__init__(**kwargs[, department, email, ...]) |
Attributes
code | |
created_by | gets and sets the User object who has created this |
date_created | gets and sets the datetime.datetime object which shows when |
date_updated | gets and sets the datetime.datetime object which shows when |
department | department of the user, it is a |
description | the description of the entity |
email of the user, accepts strings or unicodes | |
first_name | first name of the user, accepts string or unicode |
last_login | last login time of the user as a datetime.datetime instance |
last_name | last name of the user, accepts string or unicode |
login_name | login name of the user, accepts string or unicode, also sets |
name | the name of the user object, it is the synonym for the |
nice_name | this is the nice name of the SimpleEntity. It has the same |
password | password of the user, it is scrambled before stored in the |
permission_groups | permission groups that this users is a member of, accepts |
projects | projects those the current user assigned to, accepts |
projects_lead | projects lead by this current user, accepts |
sequences_lead | sequences lead by this user, accpets |
tags | a list of Tag objects which shows the related tags to the |
tasks | tasks assigned to the current user, accepts |
updated_by | gets and sets the User object who has updated this |
gets and sets the User object who has created this AuditEntity
gets and sets the datetime.datetime object which shows when this object has been created
gets and sets the datetime.datetime object which shows when this object has been updated
department of the user, it is a Department object
the description of the entity
last login time of the user as a datetime.datetime instance
the name of the user object, it is the synonym for the login_name
this is the nice name of the SimpleEntity. It has the same value with the name (contextually) but with a different format like, all the whitespaces replaced by underscores (“_”), all the CamelCase form will be expanded by underscore (_) characters and it is always lowercase.
There is also the code attribute which is simple the uppercase form of nice_name if it is not defined differently (i.e set to another value).
a list of Tag objects which shows the related tags to the entity
gets and sets the User object who has updated this AuditEntity