linotp.useridresolver package

The useridresolver is responsible for getting userids for loginnames and vice versa.

This base module contains the base class UserIdResolver.UserIdResolver and also the community class PasswdIdResolver.IdResolver, that is inherited from the base class.

class linotp.useridresolver.ClassRegistry

Bases: dict

A simple class registry, that provides a convenient decorator.

Usage:

>>> cls_reg = ClassRegistry()
>>> cls_reg.class_entry(registry_key='foo_cls')
>>> class Foo (object):
>>>    pass
class_entry(registry_key=None)

decorator factory to insert classes into this registry

linotp.useridresolver.reload_classes()

iterates through the modules in this package and import every single one of them

Submodules