Package turbogears :: Package identity :: Module soprovider :: Class TG_User

Class TG_User

source code

              object --+    
                       |    
sqlobject.main.SQLObject --+
                           |
                          TG_User

Reasonably basic User definition.

Nested Classes
  sqlmeta
This object is the object we use to keep track of all sorts of information.

Inherited from sqlobject.main.SQLObject: SelectResultsClass, __metaclass__

Instance Methods
 
set_password_raw(self, password)
Save the password as-is to the database.
source code
 
addTG_Group(self, obj)
 
removeTG_Group(self, obj)

Inherited from sqlobject.main.SQLObject: __eq__, __ge__, __getstate__, __gt__, __init__, __le__, __lt__, __ne__, __repr__, __setstate__, __sqlrepr__, destroySelf, expire, set, sync, syncUpdate, tablesUsedImmediate

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

Class Methods
 
by_email_address(cls, val, connection=None)
email_address
source code
 
by_user_name(cls, val, connection=None)
user_name
source code

Inherited from sqlobject.main.SQLObject: clearTable, coerceID, createIndexes, createIndexesSQL, createJoinTables, createJoinTablesSQL, createTable, createTableSQL, delete, deleteBy, deleteMany, dropJoinTables, dropTable, get, select, selectBy, setConnection, sqlrepr, tableExists

Static Methods

Inherited from sqlobject.main.SQLObject: __classinit__

Class Variables
  j = tg__user
  q = tg__user

Inherited from sqlobject.main.SQLObject: childName

Properties
  user_name
_SO_val_user_name
  email_address
_SO_val_email_address
  display_name
_SO_val_display_name
  password
_SO_val_password
  created
_SO_val_created
  groups
  permissions

Inherited from object: __class__

Property Details

user_name

_SO_val_user_name

Get Method:
_SO_get_user_name(self) - _SO_val_user_name
Set Method:
_SO_set_user_name(self, val) - user_name

email_address

_SO_val_email_address

Get Method:
_SO_get_email_address(self) - _SO_val_email_address
Set Method:
_set_email_address(self, val) - email_address

display_name

_SO_val_display_name

Get Method:
_get_display_name(self) - _SO_val_display_name
Set Method:
_SO_set_display_name(self, val) - display_name

password

_SO_val_password

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

created

_SO_val_created

Get Method:
_get_created(self) - _SO_val_created
Set Method:
_SO_set_created(self, val) - created

groups

Get Method:
_SO_get_groups(self)

permissions

Get Method:
_get_permissions(self)