Package turbogears :: Package identity :: Module soprovider

Module soprovider

source code

Classes
  SqlObjectIdentity
Identity that uses a model from a database (via SQLObject).
  SqlObjectIdentityProvider
IdentityProvider that uses a model from a database (via SQLObject).
  TG_VisitIdentity
A visit to your website.
  TG_Group
An ultra-simple group definition.
  TG_User
Reasonably basic User definition.
  TG_Permission
Permissions for a given group.
Functions
 
to_db_encoding(s, encoding) source code
 
jsonify_group(obj)
Convert group to JSON.
source code
 
jsonify_user(obj)
Convert user 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.soprovider')
  hub = PackageHub('turbogears.identity')
  __connection__ = PackageHub('turbogears.identity')
  user_class = None
hash(x)
  group_class = None
hash(x)
  permission_class = None
hash(x)
  visit_class = None
hash(x)
Function Details

jsonify_group(obj)

source code 

Convert group to JSON.

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

jsonify_user(obj)

source code 

Convert user to JSON.

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

jsonify_permission(obj)

source code 

Convert permissions to JSON.

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