-=[ Mr. Bumblebee ]=-
_Indonesia_
σ
ξ:οNc @@ s d Z d d l m Z d d l m Z d e f d YZ d e f d YZ d e f d YZ d
e f d YZ d S(
s8 Classes to provide name-to-object registry-like support.i ( t absolute_import( t get_named_objectt
_ObjectGetterc B@ s2 e Z d Z d g Z d Z d Z d Z RS( s Maintain a reference to an object, and return the object on request.
This is used by Registry to make plain objects function similarly
to lazily imported objects.
Objects can be any sort of python object (class, function, module,
instance, etc)
t _objc C@ s
| | _ d S( N( R ( t selft obj( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/registry.pyt __init__$ s c C@ s
| j j S( s* Get the module the object was loaded from.( R t
__module__( R ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/registry.pyt
get_module' s c C@ s | j S( s. Get the object that was saved at creation time( R ( R ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/registry.pyt get_obj+ s ( t __name__R t __doc__t __slots__R R R ( ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/registry.pyR s
t _LazyObjectGetterc B@ sA e Z d Z d d d g Z d Z d Z d Z d Z RS( sQ Keep a record of a possible object.
When requested, load and return it.
t _module_namet _member_namet _importedc C@ s5 | | _ | | _ t | _ t t | j d d S( N( R R t FalseR t superR
R t None( R t module_namet member_name( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/registry.pyR 8 s c C@ s | j S( sB Get the module the referenced object will be loaded from.
( R ( R ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/registry.pyR >