Ejemplo n.º 1
0
def get_backend():
    if not conf.METADATA.get('BACKEND'):
        raise ValueError('BACKEND for STORAGE must be defined')
    metadata = import_attribute(conf.METADATA['BACKEND'])
    return metadata()
Ejemplo n.º 2
0
def get_backend():
    if not conf.METADATA.get('BACKEND'):
        raise ValueError('BACKEND for STORAGE must be defined')
    metadata = import_attribute(conf.METADATA['BACKEND'])
    return metadata()
Ejemplo n.º 3
0
def get_backend():
    if not conf.STORAGE.get('BACKEND'):
        raise ValueError('BACKEND for STORAGE must be defined')
    backend = import_attribute(conf.STORAGE['BACKEND'])
    return backend()