Package ldaptor :: Module compat :: Class _LazyOverlayModule
[hide private]
[frames] | no frames]

Class _LazyOverlayModule

source code

object --+    
         |    
ModuleType --+
             |
            _LazyOverlayModule

proxy module which overlays original module, and lazily imports specified attributes.

this is mainly used to prevent importing of resources that are only needed by certain password hashes, yet allow them to be imported from a single location.

used by :mod:`passlib.utils`, :mod:`passlib.utils.crypto`, and :mod:`passlib.utils.compat`.

Instance Methods [hide private]
 
__init__(self, name, attrmap, proxy=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getattr__(self, attr) source code
 
__repr__(self)
repr(x)
source code
 
__dir__(self) source code

Inherited from ModuleType: __delattr__, __getattribute__, __new__, __setattr__

Inherited from object: __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
replace_module(cls, name, attrmap) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, attrmap, proxy=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)