Revision 1ebea3d3 snf-astakos-app/astakos/im/views.py

b/snf-astakos-app/astakos/im/views.py
100 100
    LOGGING_LEVEL, PAGINATE_BY,
101 101
    RESOURCES_PRESENTATION_DATA, PAGINATE_BY_ALL,
102 102
    MODERATION_ENABLED)
103
from astakos.im.api import get_services
103
from astakos.im.api import get_services_dict
104 104
from astakos.im import settings as astakos_settings
105 105
from astakos.im.api.callpoint import AstakosCallpoint
106 106
from astakos.im import auth_providers
......
399 399
    # providers that user can add
400 400
    user_available_providers = request.user.get_available_auth_providers()
401 401

  
402
    try:
403
        resp = get_services(request)
404
    except Exception, e:
405
        services = ()
406
    else:
407
        services = json.loads(resp.content)
408
    extra_context['services'] = services
402
    extra_context['services'] = get_services_dict()
409 403
    return render_response(template_name,
410 404
                           profile_form = form,
411 405
                           user_providers = user_providers,

Also available in: Unified diff