<s> """<STR_LIT>""" <EOL> from media_nommer . conf import settings <EOL> from media_nommer . utils . mod_importing import import_class_from_module_string <EOL> from media_nommer . utils . uri_parsing import get_values_from_media_uri <EOL> def get_backend_for_protocol ( protocol ) : <EOL> """<STR_LIT>""" <EOL> backend_class_fqpn = settings . STORAGE_BACKENDS [ protocol ] <EOL> return import_class_from_module_string ( backend_class_fqpn ) <EOL> def get_backend_for_uri ( uri ) : <EOL> """<STR_LIT>""" <EOL> values = get_values_from_media_uri ( uri ) <EOL> return get_backend_for_protocol ( values [ '<STR_LIT>' ] ) </s>
