def load_augmentation_class():
 try:
  class_name = desktop.conf.AUTH.USER_AUGMENTOR.get()
  i = class_name.rfind('.')
  (module, attr) = (class_name[:i], class_name[(i + 1):])
  mod = import_module(module)
  klass = getattr(mod, attr)
  LOG.info(('Augmenting users with class: %s' % (klass,)))
  return klass
 except:
  LOG.exception('failed to augment class')
  raise ImproperlyConfigured(('Could not find user_augmentation_class: %s' % (class_name,)))

def load_augmentation_class ( ) : try : class_name = desktop . conf . AUTH . USER_AUGMENTOR . get ( ) i = class_name . rfind ( '.' ) ( module , attr ) = ( class_name [ : i ] , class_name [ ( i + 1 ) : ] ) mod = import_module ( module ) klass = getattr ( mod , attr ) LOG . info ( ( 'Augmenting users with class: %s' % ( klass , ) ) ) return klass except : LOG . exception ( 'failed to augment class' ) raise ImproperlyConfigured ( ( 'Could not find user_augmentation_class: %s' % ( class_name , ) ) )
loads the user augmentation class .