Package turbogears :: Package identity :: Module saprovider :: Class TG_User

Class TG_User

source code

object --+
         |
        TG_User

Reasonably basic User definition.

Instance Methods
 
__repr__(self)
repr(x)
source code
 
__unicode__(self) source code
 
set_password_raw(self, password)
Save the password as-is to the database.
source code
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
by_email_address(cls, email_address) source code
 
by_user_name(cls, user_name) source code
 
by_name(cls, user_name) source code
Class Variables
  created = <sqlalchemy.orm.attributes.InstrumentedAttribute obj...
  display_name = <sqlalchemy.orm.attributes.InstrumentedAttribut...
  email_address = <sqlalchemy.orm.attributes.InstrumentedAttribu...
  groups = <sqlalchemy.orm.attributes.InstrumentedAttribute obje...
  user_id = <sqlalchemy.orm.attributes.InstrumentedAttribute obj...
  user_name = <sqlalchemy.orm.attributes.InstrumentedAttribute o...
  visit_identity = <sqlalchemy.orm.attributes.InstrumentedAttrib...
Properties
  permissions
Return all permissions of all groups the user belongs to.
  password
Returns password.

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

Class Variable Details

created

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d119af\
5d0>

display_name

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d119af\
510>

email_address

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d119af\
450>

groups

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d1195c\
890>

user_id

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d119af\
2d0>

user_name

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d119af\
390>

visit_identity

Value:
<sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f0d11954\
cd0>

Property Details

permissions

Return all permissions of all groups the user belongs to.

Get Method:
unreachable.permissions(self) - Return all permissions of all groups the user belongs to.

password

Returns password.

Get Method:
_get_password(self) - Returns password.
Set Method:
_set_password(self, cleartext_password) - Run cleartext password through the hash algorithm before saving.