Revision 79b5d61b snf-pithos-app/pithos/api/delegate.py
b/snf-pithos-app/pithos/api/delegate.py | ||
---|---|---|
40 | 40 |
from django.utils.http import urlencode |
41 | 41 |
from django.views.decorators.csrf import csrf_exempt |
42 | 42 |
|
43 |
from pithos.api.settings import (USER_LOGIN_URL, USER_FEEDBACK_URL, |
|
44 |
USER_CATALOG_URL) |
|
43 |
from pithos.api.settings import ASTAKOS_URL |
|
45 | 44 |
|
46 | 45 |
from objpool.http import PooledHTTPConnection |
47 | 46 |
|
48 | 47 |
logger = logging.getLogger(__name__) |
49 | 48 |
|
49 |
USER_CATALOG_URL = urlparse.urljoin(ASTAKOS_URL, "astakos/api/user_catalogs") |
|
50 |
USER_FEEDBACK_URL = urlparse.urljoin(ASTAKOS_URL, "astakos/api/feedback") |
|
51 |
USER_LOGIN_URL = urljoin(ASTAKOS_URL, "login") |
|
50 | 52 |
|
51 | 53 |
def delegate_to_login_service(request): |
52 | 54 |
url = USER_LOGIN_URL |
Also available in: Unified diff