From 0636b661c45028a7b932de829fa78de09787b935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Wed, 9 Jul 2014 18:48:55 +0200 Subject: [PATCH] mappers: use new syntax for reponse --- rp_meyzieu/mappers/portail_famille_ecities.py | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/rp_meyzieu/mappers/portail_famille_ecities.py b/rp_meyzieu/mappers/portail_famille_ecities.py index c642126..def750b 100644 --- a/rp_meyzieu/mappers/portail_famille_ecities.py +++ b/rp_meyzieu/mappers/portail_famille_ecities.py @@ -49,24 +49,20 @@ mapping = [ { 'path': r'/mandaye/login$', 'method': 'GET', - 'response': [{ + 'response': { 'auth': 'login', 'condition': 'response.code==302', - },] + } }, { 'path': r'/mandaye/sso$', 'method': 'GET', - 'response': [{ - 'auth': 'sso', - }] + 'response': {'auth': 'sso',} }, { 'path': r'/mandaye/slo$', 'method': 'GET', - 'response': [{ - 'auth': 'slo', - }] + 'response': {'auth': 'slo',} }, { 'path': (r'/ffaxsslMeyzieu/$', r'/ffaxsslMeyzieu/workflow_url$'), @@ -114,34 +110,30 @@ mapping = [ { 'path': r'/ffaxsslMeyzieu/mandaye_associate$', 'method': 'POST', - 'response': [ - { - 'auth': 'associate_submit', - 'condition': "response.code==302" - }, - ] + 'response': { + 'auth': 'associate_submit', + 'condition': "response.code==302" + } }, { 'path': r'%s$' % END_POINTS_PATH['single_sign_on_post'], 'method': 'POST', - 'response': [{'auth': 'single_sign_on_post'}] + 'response': {'auth': 'single_sign_on_post'} }, { 'path': r'%s$' % END_POINTS_PATH['single_logout'], 'method': 'GET', - 'response': [{ - 'auth': 'single_logout', - }] + 'response': {'auth': 'single_logout',} }, { 'path': r'%s$' % END_POINTS_PATH['single_logout_return'], 'method': 'GET', - 'response': [{ + 'response': { 'auth': 'single_logout_return', 'values': { 'next_url': index_url }, - }] + } }, ]