Revision 0afd9936
b/snf-pithos-webclient/pithos_webclient/settings.py | ||
---|---|---|
36 | 36 |
from pithos.api.settings import LazyAstakosUrl |
37 | 37 |
from django.conf import settings |
38 | 38 |
from synnefo.lib import join_urls, parse_base_url |
39 |
from synnefo.util.keypath import get_path |
|
40 | 39 |
from pithos.api.services import pithos_services as vanilla_pithos_services |
41 | 40 |
from synnefo.lib.services import get_public_endpoint, fill_endpoints |
42 | 41 |
|
... | ... | |
54 | 53 |
|
55 | 54 |
pithos_services = deepcopy(vanilla_pithos_services) |
56 | 55 |
fill_endpoints(pithos_services, BASE_URL) |
57 |
PITHOS_PREFIX = get_path(pithos_services, ['pithos_object-store', 'prefix'])
|
|
58 |
PUBLIC_PREFIX = get_path(pithos_services, ['pithos_public', 'prefix'])
|
|
59 |
UI_PREFIX = get_path(pithos_services, ['pithos_ui', 'prefix'])
|
|
56 |
PITHOS_PREFIX = pithos_services['pithos_object-store']['prefix']
|
|
57 |
PUBLIC_PREFIX = pithos_services['pithos_public']['prefix']
|
|
58 |
UI_PREFIX = pithos_services['pithos_ui']['prefix']
|
|
60 | 59 |
|
61 | 60 |
if not BASE_PATH.startswith("/"): |
62 | 61 |
BASE_PATH = "/" + BASE_PATH |
Also available in: Unified diff