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 help(type(x)) for signature
source code
 
user(self)
Get user instance for this identity.
source code
 
user_name(self)
Get user name of this identity.
source code
 
user_id(self)
Get user id of this identity.
source code
 
anonymous(self)
Return true if not logged in.
source code
 
permissions(self)
Get set of permission names of this identity.
source code
 
groups(self)
Get set of group names of this identity.
source code
 
group_ids(self)
Get set of group IDs of this identity.
source code
 
visit_link(self)
Get the visit link to this identity.
source code
 
login_url(self)
Get the URL for the login page.
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

Inherited from object: __class__

Method Details

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

source code 

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

Overrides: object.__init__
(inherited documentation)

user(self)

source code 

Get user instance for this identity.

Decorators:
  • @property

user_name(self)

source code 

Get user name of this identity.

Decorators:
  • @property

user_id(self)

source code 

Get user id of this identity.

Decorators:
  • @property

anonymous(self)

source code 

Return true if not logged in.

Decorators:
  • @property

permissions(self)

source code 

Get set of permission names of this identity.

Decorators:
  • @property

groups(self)

source code 

Get set of group names of this identity.

Decorators:
  • @property

group_ids(self)

source code 

Get set of group IDs of this identity.

Decorators:
  • @property

visit_link(self)

source code 

Get the visit link to this identity.

Decorators:
  • @property

login_url(self)

source code 

Get the URL for the login page.

Decorators:
  • @property