From f9f1aa2535d3fae8e35d803ba8c85f8891ec133c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 28 Apr 2015 17:28:54 +0200 Subject: [PATCH] =?utf8?q?Redirection=20vers=20url=20pass=C3=A9e=20en=20pa?= =?utf8?q?ram=C3=A8tre=20=C2=AB=C2=A0came=5Ffrom=C2=A0=C2=BB=20lors=20de?= =?utf8?q?=20l'inscription.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../Plinn/skins/custom_generic/join_form.py | 3 ++- .../skins/custom_generic/join_template.pt | 3 +++ .../Plinn/skins/custom_generic/logged_in.py | 24 +++++-------------- 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/Products/Plinn/skins/custom_generic/join_form.py b/Products/Plinn/skins/custom_generic/join_form.py index 8e82159..f7cdead 100644 --- a/Products/Plinn/skins/custom_generic/join_form.py +++ b/Products/Plinn/skins/custom_generic/join_form.py @@ -1,4 +1,4 @@ -##parameters=member_id='', given_name='', name='', member_email='', password='', confirm='', add='', ajax='' +##parameters=member_id='', given_name='', name='', member_email='', password='', confirm='', add='', came_from='', ajax='' ## from Products.CMFCore.utils import getToolByName from Products.CMFDefault.permissions import ManageUsers @@ -58,6 +58,7 @@ options['isOrdinaryMember'] = not (mtool.isAnonymousUser() or is_newmember) options['validate_email'] = validate_email options['isAnonRegistration'] = rtool.getMode() == MODE_ANONYMOUS options['isReviewedRegistration'] = rtool.getMode() == MODE_REVIEWED +options['came_from'] = came_from buttons = [] if is_newmember: diff --git a/Products/Plinn/skins/custom_generic/join_template.pt b/Products/Plinn/skins/custom_generic/join_template.pt index d5deaca..eb33650 100644 --- a/Products/Plinn/skins/custom_generic/join_template.pt +++ b/Products/Plinn/skins/custom_generic/join_template.pt @@ -30,6 +30,7 @@
+ @@ -108,6 +109,8 @@ +