def get_catalogue(backend=None, skip_caps=True):
 default_backend_config = (backend or default_catalogue_backend())
 backend_name = default_backend_config['ENGINE']
 catalog_module = load_backend(backend_name)
 assert hasattr(catalog_module, 'CatalogueBackend'), '%s must define a CatalogueBackend class'
 catalog_class = catalog_module.CatalogueBackend
 cat = catalog_class(skip_caps=skip_caps, **default_backend_config)
 return cat

def get_catalogue ( backend = None , skip_caps = True ) : default_backend_config = ( backend or default_catalogue_backend ( ) ) backend_name = default_backend_config [ 'ENGINE' ] catalog_module = load_backend ( backend_name ) assert hasattr ( catalog_module , 'CatalogueBackend' ) , '%s must define a CatalogueBackend class' catalog_class = catalog_module . CatalogueBackend cat = catalog_class ( skip_caps = skip_caps , ** default_backend_config ) return cat
returns a catalogue object .