Package turbogears :: Package identity :: Module saprovider

Module saprovider

source code

Classes
  user_class
Reasonably basic User definition.
  group_class
An ultra-simple Group definition.
  permission_class
A relationship that determines what each Group can do.
  visit_class
A Visit that is linked to a User object.
  SqlAlchemyIdentity
Identity that uses a model from a database (via SQLAlchemy).
  SqlAlchemyIdentityProvider
IdentityProvider that uses a model from a database (via SQLAlchemy).
  TG_User
Reasonably basic User definition.
  TG_Group
An ultra-simple Group definition.
  TG_Permission
A relationship that determines what each Group can do.
  TG_VisitIdentity
A Visit that is linked to a User object.
Functions
 
jsonify_user(obj)
Convert user to JSON.
source code
 
jsonify_group(obj)
Convert group to JSON.
source code
 
jsonify_permission(obj)
Convert permissions to JSON.
source code
 
encrypt_password(cleartext_password)
Encrypt given cleartext password.
source code
Variables
  log = logging.getLogger('turbogears.identity.saprovider')
  __package__ = 'turbogears.identity'
Function Details

jsonify_user(obj)

source code 

Convert user to JSON.

Decorators:
  • @jsonify.when('isinstance(obj, TG_User)')

jsonify_group(obj)

source code 

Convert group to JSON.

Decorators:
  • @jsonify.when('isinstance(obj, TG_Group)')

jsonify_permission(obj)

source code 

Convert permissions to JSON.

Decorators:
  • @jsonify.when('isinstance(obj, TG_Permission)')