Package turbogears :: Package identity :: Module soprovider

Module soprovider

source code

Classes
  user_class
Reasonably basic User definition.
  group_class
An ultra-simple group definition.
  permission_class
Permissions for a given group.
  visit_class
A visit to your website.
  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')
  __package__ = 'turbogears.identity'
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)')