Package turbogears :: Package identity :: Module saprovider :: Class SqlAlchemyIdentity

Class SqlAlchemyIdentity

source code

object --+
         |
        SqlAlchemyIdentity

Identity that uses a model from a database (via SQLAlchemy).

Instance Methods
 
__init__(self, visit_key=None, user=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
login(self)
Set the link between this identity and the visit.
source code
 
logout(self)
Remove the link between this identity and the visit.
source code

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

Properties
  user
Get user instance for this identity.
  user_name
Get user name of this identity.
  user_id
Get user id of this identity.
  anonymous
Return true if not logged in.
  permissions
Get set of permission names of this identity.
  groups
Get set of group names of this identity.
  group_ids
Get set of group IDs of this identity.
  visit_link
Get the visit link to this identity.
  login_url
Get the URL for the login page.

Inherited from object: __class__

Method Details

__init__(self, visit_key=None, user=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Property Details

user

Get user instance for this identity.

Get Method:
unreachable.user(self) - Get user instance for this identity.

user_name

Get user name of this identity.

Get Method:
unreachable.user_name(self) - Get user name of this identity.

user_id

Get user id of this identity.

Get Method:
unreachable.user_id(self) - Get user id of this identity.

anonymous

Return true if not logged in.

Get Method:
unreachable.anonymous(self) - Return true if not logged in.

permissions

Get set of permission names of this identity.

Get Method:
unreachable.permissions(self) - Get set of permission names of this identity.

groups

Get set of group names of this identity.

Get Method:
unreachable.groups(self) - Get set of group names of this identity.

group_ids

Get set of group IDs of this identity.

Get Method:
unreachable.group_ids(self) - Get set of group IDs of this identity.

visit_link

Get the visit link to this identity.

Get Method:
unreachable.visit_link(self) - Get the visit link to this identity.

login_url

Get the URL for the login page.

Get Method:
unreachable.login_url(self) - Get the URL for the login page.