summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/invite/utils.py
diff options
context:
space:
mode:
authorPaul Marillonnet <pmarillonnet@entrouvert.com>2017-06-01 14:14:15 (GMT)
committerPaul Marillonnet <pmarillonnet@entrouvert.com>2017-06-01 14:14:15 (GMT)
commitbbbe8ba1f97e817976d7bfe26d2b39ab767ceac4 (patch)
treedc23f82794800963d97536a684f06a6dba6e1d4e /django/sp_sso/invite/utils.py
parentdb1f29249d02c796c89f64d0fc4c5c3bdae2b289 (diff)
downloadpaul-synchro-bbbe8ba1f97e817976d7bfe26d2b39ab767ceac4.zip
paul-synchro-bbbe8ba1f97e817976d7bfe26d2b39ab767ceac4.tar.gz
paul-synchro-bbbe8ba1f97e817976d7bfe26d2b39ab767ceac4.tar.bz2
POC Campus Condorcet : commentaires dans le code de l'appli d'invitation
Diffstat (limited to 'django/sp_sso/invite/utils.py')
-rw-r--r--django/sp_sso/invite/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/sp_sso/invite/utils.py b/django/sp_sso/invite/utils.py
index 68b7991..39dda26 100644
--- a/django/sp_sso/invite/utils.py
+++ b/django/sp_sso/invite/utils.py
@@ -10,7 +10,8 @@ def do_invite(invitation):
opener = build_opener(HTTPHandler)
# Generate a JSON to bind against the wcs ReST API
form = {}
- form["data"] = invitation # see wcs documentation
+ # Forge a HTTP POST request
+ form["data"] = invitation
data = json.dumps(form)
req = Request(posturl, data)