summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2014-11-17 17:10:49 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2014-11-17 17:10:49 (GMT)
commit66bfe1cede7c5bb175b7e9417fc1551c870aef5a (patch)
tree662b9f3b1ae13143a3a63cab31b636604a5adfc1
parentc22607b630441ddc7e53bd18d18c1682a7094b7d (diff)
downloadmandaye-cud-66bfe1cede7c5bb175b7e9417fc1551c870aef5a.zip
mandaye-cud-66bfe1cede7c5bb175b7e9417fc1551c870aef5a.tar.gz
mandaye-cud-66bfe1cede7c5bb175b7e9417fc1551c870aef5a.tar.bz2
arcopole: reset cookies before association
Closes #5961
-rw-r--r--mandaye_cud/filters/cud.py5
-rw-r--r--mandaye_cud/mappers/arcopole.py3
2 files changed, 8 insertions, 0 deletions
diff --git a/mandaye_cud/filters/cud.py b/mandaye_cud/filters/cud.py
index fda9866..1219ba6 100644
--- a/mandaye_cud/filters/cud.py
+++ b/mandaye_cud/filters/cud.py
@@ -10,6 +10,11 @@ from mandaye.response import _302
class ArcopoleFilter:
@staticmethod
+ def associate_req(env, values, request):
+ request.cookies = None
+ return request
+
+ @staticmethod
def associate(env, values, request, response):
qs = parse_qs(env['QUERY_STRING'])
if qs.has_key('type'):
diff --git a/mandaye_cud/mappers/arcopole.py b/mandaye_cud/mappers/arcopole.py
index 1f30606..47abd16 100644
--- a/mandaye_cud/mappers/arcopole.py
+++ b/mandaye_cud/mappers/arcopole.py
@@ -93,6 +93,9 @@ mapping = [
'path': r'/studio/mandayeassociate$',
'method': 'GET',
'target': '/studio/accueil',
+ 'on_request': [
+ {'filter': ArcopoleFilter.associate_req,}
+ ],
'on_response': [{
'filter': ArcopoleFilter.associate,
'values': {