Package turbogears :: Package identity

Source Code for Package turbogears.identity

 1  """The TurboGears identity management package.""" 
 2   
 3  # declare what should be exported 
 4  __all__ = ['All', 'Any', 'NotAny', 'CompoundPredicate', 
 5      'IdentityConfigurationException', 'IdentityException', 'IdentityFailure', 
 6      'IdentityManagementNotEnabledException', 'IdentityPredicateHelper', 
 7      'Predicate', 'RequestRequiredException', 'SecureObject', 'SecureResource', 
 8      'current', 'current_provider', 'create_default_provider', 
 9      'encrypt_password', 'encrypt_pw_with_algorithm', 
10      'from_host', 'from_any_host', 'get_identity_errors', 'get_failure_url', 
11      'in_all_groups', 'in_any_group', 'in_group', 
12      'has_all_permissions', 'has_any_permission', 'has_permission', 
13      'not_anonymous', 'require', 
14      'set_current_identity', 'set_current_provider', 
15      'set_identity_errors', 'set_login_attempted', 
16      'verify_identity_status', 'was_login_attempted'] 
17   
18  from turbogears.identity.base import (current, current_provider, 
19      create_default_provider, encrypt_password, encrypt_pw_with_algorithm, 
20      set_current_identity, set_current_provider, set_login_attempted, 
21      verify_identity_status, was_login_attempted) 
22  from turbogears.identity.conditions import (All, Any, CompoundPredicate, 
23      NotAny, Predicate, SecureObject, SecureResource, from_host, from_any_host, 
24      in_all_groups, in_any_group, in_group, has_all_permissions, 
25      has_any_permission, has_permission, not_anonymous, require) 
26  from turbogears.identity.exceptions import (IdentityConfigurationException, 
27      IdentityException, IdentityFailure, IdentityManagementNotEnabledException, 
28      RequestRequiredException, get_identity_errors, get_failure_url, 
29      set_identity_errors) 
30