summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/invite/utils.py
diff options
context:
space:
mode:
authorPaul Marillonnet <pmarillonnet@entrouvert.com>2017-06-20 15:35:39 (GMT)
committerPaul Marillonnet <pmarillonnet@entrouvert.com>2017-06-20 15:35:39 (GMT)
commitac543c6fad923918ded53f9451c212d231a29dfa (patch)
tree0f5466fc26f33fea27e6830861cc8d641c158bfa /django/sp_sso/invite/utils.py
parente1f5c1743e3e3e1c21f4ffce15b774db284704cb (diff)
downloadpaul-synchro-ac543c6fad923918ded53f9451c212d231a29dfa.zip
paul-synchro-ac543c6fad923918ded53f9451c212d231a29dfa.tar.gz
paul-synchro-ac543c6fad923918ded53f9451c212d231a29dfa.tar.bz2
POC Campus Condorcet : retrait du champ hote_identite, partie2
On laissera a la place un simple champ commentaire ou l'utilisateur sera libre de preciser l'identite de l'invitant s'il le souhaite
Diffstat (limited to 'django/sp_sso/invite/utils.py')
-rw-r--r--django/sp_sso/invite/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/django/sp_sso/invite/utils.py b/django/sp_sso/invite/utils.py
index 39dda26..d9921f5 100644
--- a/django/sp_sso/invite/utils.py
+++ b/django/sp_sso/invite/utils.py
@@ -6,6 +6,14 @@ pocform = 'invitation'
wcs = 'http://forms-condorcet.dev.entrouvert.org/'
posturl = wcs+'/api/formdefs/'+pocform+'/submit'
+INVITATION_ATTRIBUTES_MAPPING = {
+ 'ep_principal_name': 'hote_identite',
+ 'email': 'hote_courriel'
+}
+
+def get_invitaton_attributes_mapping():
+ return INVITATION_ATTRIBUTES_MAPPING
+
def do_invite(invitation):
opener = build_opener(HTTPHandler)
# Generate a JSON to bind against the wcs ReST API