def _get_storage(self, config):
        storage_cls = self.types.get(config.get('STORAGE_TYPE'))
        if storage_cls is not None:
            return storage_cls(config)
        else:
            raise ConfigurationError('An invalid storage type was specified.')
Build a user storage service for the app's configuration.
dataset/ETHPy150Open mblayman/markwiki/markwiki/storage/factory.py/UserStorageFactory._get_storage