From aefda44ab040aa30d29723ff652cb264c53eeb26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Thu, 1 Aug 2013 16:06:56 +0200 Subject: [PATCH] =?utf8?q?Mise=20au=20point=20de=20l'envoi=20du=20mail=20d?= =?utf8?q?e=20r=C3=A9initialisation=20de=20mot=20de=20passe.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- RegistrationTool.py | 12 ++--- locales/en/LC_MESSAGES/plinn.mo | Bin 2313 -> 2313 bytes locales/en/LC_MESSAGES/plinn.po | 22 ++++---- locales/fr/LC_MESSAGES/plinn.mo | Bin 38768 -> 38753 bytes locales/fr/LC_MESSAGES/plinn.po | 49 ++++++++++++------ locales/plinn.pot | 22 ++++---- skins/generic/password_reset_mail.py | 15 ++++++ skins/generic/password_reset_mail_template.pt | 10 ---- 8 files changed, 76 insertions(+), 54 deletions(-) create mode 100644 skins/generic/password_reset_mail.py delete mode 100644 skins/generic/password_reset_mail_template.pt diff --git a/RegistrationTool.py b/RegistrationTool.py index 021b714..72a7329 100644 --- a/RegistrationTool.py +++ b/RegistrationTool.py @@ -38,10 +38,10 @@ from Products.GroupUserFolder.GroupsToolPermissions import ManageGroups from Products.Plinn.utils import Message as _ from Products.Plinn.utils import translate from Products.Plinn.utils import encodeQuopriEmail +from Products.Plinn.utils import encodeMailHeader from DateTime import DateTime from types import TupleType, ListType from uuid import uuid4 -from quopri import encodestring security = ModuleSecurityInfo('Products.Plinn.RegistrationTool') MODE_ANONYMOUS = 'anonymous' @@ -215,11 +215,11 @@ class RegistrationTool(BaseRegistrationTool) : sender = encodeQuopriEmail(ptool.getProperty('email_from_name'), ptool.getProperty('email_from_address')) to = encodeQuopriEmail(member.getMemberFullName(nameBefore=0), member.getProperty('email')) subject = translate(_('How to reset your password on the %s website')) % ptool.getProperty('title') - subject = "=?utf-8?q?%s?=" % encodestring(subject) - body = self.password_reset_mail_template(fullName=member.getMemberFullName(nameBefore=0), - siteName=ptool.getProperty('title'), - resetPasswordUrl='%s/password_reset_form/%s' % (utool(), uuid) - ) + subject = encodeMailHeader(subject) + options = {'fullName' : member.getMemberFullName(nameBefore=0), + 'siteName' : ptool.getProperty('title'), + 'resetPasswordUrl' : '%s/password_reset_form/%s' % (utool(), uuid)} + body = self.password_reset_mail(options) message = self.echange_mail_template(From=sender, To=to, Subject=subject, diff --git a/locales/en/LC_MESSAGES/plinn.mo b/locales/en/LC_MESSAGES/plinn.mo index 4cd15ff104fda230bdf474decb2d026b06494bb4..5e4bf2b59d9cb40cd155d27b94277e3bad05ff0c 100644 GIT binary patch delta 20 bcmeAa>J-{w%*JkFWny4uVzJqZ?K~3zIOzpr delta 20 bcmeAa>J-{w%*JkLWnyk+Y`WQs?K~3zIO_#t diff --git a/locales/en/LC_MESSAGES/plinn.po b/locales/en/LC_MESSAGES/plinn.po index 7e6bac9..7d41f54 100644 --- a/locales/en/LC_MESSAGES/plinn.po +++ b/locales/en/LC_MESSAGES/plinn.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plinn 2.0\n" -"POT-Creation-Date: Thu Aug 1 11:47:35 2013\n" +"POT-Creation-Date: Thu Aug 1 14:40:48 2013\n" "PO-Revision-Date: 2007-10-17 14:43+0200\n" "Last-Translator: Benoît PIN\n" "Language-Team: CRI http://cri.ensmp.fr\n" @@ -999,30 +999,30 @@ msgstr "" msgid "Exit boxes editing" msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:1 -msgid "Hi ${fullname}," +#: n/skins/generic/password_reset_mail.py:4 +msgid "Hi %(fullName)s," msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:4 +#: n/skins/generic/password_reset_mail.py:6 msgid "You have asked to change your password." msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:6 +#: n/skins/generic/password_reset_mail.py:8 msgid "" -"To get back into your account on the ${siteName} website, you'll need to " +"To get back into your account on the %(siteName)s website, you'll need to " "create a new password." msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:7 +#: n/skins/generic/password_reset_mail.py:9 msgid "It's easy:" msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:8 -msgid "— Click the link below to open a browser window." +#: n/skins/generic/password_reset_mail.py:10 +msgid "Click the link below to open a browser window." msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:9 -msgid "— Fill the form with your new password." +#: n/skins/generic/password_reset_mail.py:11 +msgid "Fill the form with your new password." msgstr "" #: n/skins/generic/password_reset_template.pt:13 diff --git a/locales/fr/LC_MESSAGES/plinn.mo b/locales/fr/LC_MESSAGES/plinn.mo index f1517706dbf99fa4e928dd0cf75e105564d2c4dd..4d68fb1fc63942372ce346dee8b542afd92fdbca 100644 GIT binary patch delta 11879 zcmZA62Y65C-^cNj7?DBDBw{285-WDZ-kYM-YSbq7j8%@kS~FJvR74h zYn3Xk8da-Qje6dn-}!p3KF_(Xuh)Iw=RWs7=a;L!x6%LSjsBaq`n#nZ$C;ksIAOR0 zbK_~ui#IS3GgKll6f+tfP5{>cf-u&`(g-=vi#Iaj_ZU{uz-SK zTxAtDVG#L!m>!Q}Ry>8J@iJz_&_u_Hz%Wz?@u-1SLk+YZMqzWzf&(x=jzzV*EYbBE zUO_=R3bvpg+>UDS0II=Lm=nLlf_MuxfXtP>ndd|eBtL2*38)V1SiTi%LY*)lCSxI- z=917z)|;C!8~JUh0epqpn(t5z{*Ky;XLjGOidQcbwKDlIJ2uBy>|)MDO)w2d;11M) z-1w^A3@W1v>Y}#fHB^Uhp&A^3n(+j?Ki%#xK@D^@YHzopR_t@snK+JG(Q~MJmrxVF zjr8X__ed0`;2Gw|0@b`Ftb!Uy1JwPtr~!<{IGl{Ra3iYWBd8gkMb$fx;dlwPVvkT0 ze1@7>#_Gzm|G7wL$)izAT^2QyMyQ6~u<|6-$cLe3HVRd55^BbCQHOL1s-v}5z7_S{ zUMzu!Fd6^AQ2KY;)o>ht?2US`FV4Ue)M0XJdLs_OJY@5r29|)4S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pxTaX@2dKEF(mVJwZDPM@~FdaQ;P*-nTN9nf2GdACe^l4%Sp{p3NL(8OV zJRTti6Ftdi5%-AA_Wo|tx*n6CPy9i;q`l|9!Jjv6q6X#n?Y(Q1?Im5-4(@5));5uQ ztE!jl02L|`UKIXBa5$U;M5ukJ0{1eB*NCFTOWb>UWs_(|nICmmlAcJqF?KLa#CYN&F`TlNsB0?mCHYP0Wd|0CF_aA@K2;^IcS-BY z!IMNJ=`Gj=ZxXEtUE3*p*`4AHtRQieg1dw+KVl5=Ir*wsn((!qenHuXL?iOa#P6g} z6FaC=3J2l`c$4^uC}W?a*nLf*>>4qUC`8nwfA{}ZC~YhLKw(9j4*So;e^5T1y6L7J z_g`=Be?{sIB8vOL#6HrqP}e#ljr5zuPGU9jK4mL$Ju!iBy~v*m6kZ`-A#|k?Ybj5l zgC?ZkBHacLVO7e4i0kCbl8?jtL_XUx&&q~3XVUEA6s z``{#Q79*Wac=Es`jHfJ-&{d1FNag_=)(F zy0vhL8sNH0+Q-)IOj=h7n>RWBfkXNC9{eld8A^r|m8lS5EB!`3gZPD5PrO9sMDCT( zO-%^(K1<1vt=$u9_-@@>r?L0esD@)a0;4AMAC;Mz)q6<#q^<8Y`Z1V-5g8-X+qetn zwf`W{bMm5y+{X=Kyf02(bYNBPj5_hTb-Q=)O{`a|PQ98*xeL2Td67=uy1V-s|E=E- z80NEeYSy{`Z8vLJcIf}K`*?cmqF(Oip3ACd8=f\n" "Language-Team: Zope 3 Developers \n" @@ -1021,28 +1021,28 @@ msgstr "" msgid "Exit boxes editing" msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:1 -msgid "Hi ${fullname}," +#: n/skins/generic/password_reset_mail.py:4 +msgid "Hi %(fullName)s," msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:4 +#: n/skins/generic/password_reset_mail.py:6 msgid "You have asked to change your password." msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:6 -msgid "To get back into your account on the ${siteName} website, you'll need to create a new password." +#: n/skins/generic/password_reset_mail.py:8 +msgid "To get back into your account on the %(siteName)s website, you'll need to create a new password." msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:7 +#: n/skins/generic/password_reset_mail.py:9 msgid "It's easy:" msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:8 -msgid "\342\200\224\302\240Click the link below to open a browser window." +#: n/skins/generic/password_reset_mail.py:10 +msgid "Click the link below to open a browser window." msgstr "" -#: n/skins/generic/password_reset_mail_temlate.pt:9 -msgid "\342\200\224 Fill the form with your new password." +#: n/skins/generic/password_reset_mail.py:11 +msgid "Fill the form with your new password." msgstr "" #: n/skins/generic/password_reset_template.pt:13 diff --git a/skins/generic/password_reset_mail.py b/skins/generic/password_reset_mail.py new file mode 100644 index 0000000..442a1f6 --- /dev/null +++ b/skins/generic/password_reset_mail.py @@ -0,0 +1,15 @@ +##parameters=options={} +from Products.Plinn.utils import translate as _ + +print _('Hi %(fullName)s,') +print +print _('You have asked to change your password.') + +print _("To get back into your account on the %(siteName)s website, you'll need to create a new password.") +print _("It's easy:") +print '— %s' % _("Click the link below to open a browser window.") +print '— %s' % _("Fill the form with your new password.") +print +print '%(resetPasswordUrl)s' + +return printed % options \ No newline at end of file diff --git a/skins/generic/password_reset_mail_template.pt b/skins/generic/password_reset_mail_template.pt deleted file mode 100644 index 261abd3..0000000 --- a/skins/generic/password_reset_mail_template.pt +++ /dev/null @@ -1,10 +0,0 @@ -Hi , - -You have asked to change your password. - -To get back into your account on the website, you'll need to create a new password. -It's easy: -— Click the link below to open a browser window. -— Fill the form with your new password. - -http://portal.bla/password_reset_form/uuid -- 2.20.1