Revision 9c6d629f snf-pithos-app/pithos/api/settings.py
b/snf-pithos-app/pithos/api/settings.py | ||
---|---|---|
37 | 37 |
from django.conf import settings |
38 | 38 |
from synnefo.lib import parse_base_url, join_urls |
39 | 39 |
from synnefo.lib.services import fill_endpoints |
40 |
from synnefo.util.keypath import get_path |
|
41 | 40 |
from pithos.api.services import pithos_services as vanilla_pithos_services |
42 | 41 |
from astakosclient import AstakosClient |
43 | 42 |
|
... | ... | |
59 | 58 |
|
60 | 59 |
pithos_services = deepcopy(vanilla_pithos_services) |
61 | 60 |
fill_endpoints(pithos_services, BASE_URL) |
62 |
PITHOS_PREFIX = get_path(pithos_services, 'pithos_object-store.prefix')
|
|
63 |
PUBLIC_PREFIX = get_path(pithos_services, 'pithos_public.prefix')
|
|
64 |
UI_PREFIX = get_path(pithos_services, 'pithos_ui.prefix')
|
|
61 |
PITHOS_PREFIX = pithos_services['pithos_object-store']['prefix']
|
|
62 |
PUBLIC_PREFIX = pithos_services['pithos_public']['prefix']
|
|
63 |
UI_PREFIX = pithos_services['pithos_ui']['prefix']
|
|
65 | 64 |
VIEW_PREFIX = join_urls(UI_PREFIX, 'view') |
66 | 65 |
|
67 | 66 |
|
Also available in: Unified diff