Revision dfc4d3d7
b/snf-pithos-app/pithos/api/settings.py | ||
---|---|---|
1 | 1 |
#coding=utf8 |
2 | 2 |
from django.conf import settings |
3 | 3 |
from synnefo.lib import parse_base_url, join_urls |
4 |
from astakosclient import astakos_services |
|
5 | 4 |
from synnefo.lib.services import fill_endpoints |
6 |
from synnefo.util.keypath import get_path |
|
5 |
from synnefo.util.keypath import get_path, set_path
|
|
7 | 6 |
from pithos.api.services import pithos_services as vanilla_pithos_services |
7 |
from astakosclient import astakos_services as vanilla_astakos_services |
|
8 | 8 |
|
9 | 9 |
from copy import deepcopy |
10 | 10 |
|
... | ... | |
25 | 25 |
PUBLIC_PREFIX = get_path(pithos_services, 'pithos_public.prefix') |
26 | 26 |
UI_PREFIX = get_path(pithos_services, 'pithos_ui.prefix') |
27 | 27 |
|
28 |
astakos_services = deepcopy(vanilla_astakos_services) |
|
29 |
fill_endpoints(astakos_services, ASTAKOS_BASE_URL) |
|
28 | 30 |
CUSTOMIZE_ASTAKOS_SERVICES = \ |
29 | 31 |
getattr(settings, 'PITHOS_CUSTOMIZE_ASTAKOS_SERVICES', ()) |
30 | 32 |
for path, value in CUSTOMIZE_ASTAKOS_SERVICES: |
Also available in: Unified diff