def __init__(self, config):
        '''
        Initialize the registry using a config
        '''
        super(Registry, self).__init__(config)

        # populated only when lock is acquired
        self._session_lock_identifier = None

        # for CBOR encode/decode
        # http://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
        # 37 is UUID; 128 is unassigned
        self._tag_mapper = cbor.TagMapper(class_tags=[
            cbor.ClassTag(37, uuid.UUID,
                          encode_function=lambda u: u.bytes,
                          decode_function=lambda b: uuid.UUID(bytes=b)),
            cbor.ClassTag(128, tuple,
                          encode_function=list, decode_function=tuple),
        ], raise_on_unknown_tag=True)
def __init__ ( self , config ) : super ( Registry , self ) . __init__ ( config ) self . _session_lock_identifier = None self . _tag_mapper = cbor . TagMapper ( class_tags = [ cbor . ClassTag ( 37 , uuid . UUID , encode_function = lambda u : u . bytes , decode_function = lambda b : uuid . UUID ( bytes = b ) ) , cbor . ClassTag ( 128 , tuple , encode_function = list , decode_function = tuple ) , ] , raise_on_unknown_tag = True )
Initialize the registry using a config