[Zope-CMF] Re: SVN: CMF/trunk/CMFDefault/RegistrationTool.py oops!
this fallbacks are broken and I guess we don't need them anyway
Florent Guillaume
fg at nuxeo.com
Wed Feb 15 09:16:56 EST 2006
Yvo Schubbe wrote:
> Modified: CMF/trunk/CMFDefault/RegistrationTool.py
> ===================================================================
> --- CMF/trunk/CMFDefault/RegistrationTool.py 2006-02-14 21:47:30 UTC (rev 41621)
> +++ CMF/trunk/CMFDefault/RegistrationTool.py 2006-02-14 22:19:40 UTC (rev 41622)
> @@ -131,8 +131,7 @@
> # Rather than have the template try to use the mailhost, we will
> # render the message ourselves and send it from here (where we
> # don't need to worry about 'UseMailHost' permissions).
> - method = getattr(self, 'member_password_mail',
> - getattr(self, 'mail_password_template'))
> + method = getattr(self, 'member_password_mail')
Well, self.member_password_mail is simpler :)
Florent
> kw = {'member': member, 'password': member.getPassword()}
>
> if getattr(aq_base(method), 'isDocTemp', 0):
> @@ -173,8 +172,7 @@
> # Rather than have the template try to use the mailhost, we will
> # render the message ourselves and send it from here (where we
> # don't need to worry about 'UseMailHost' permissions).
> - method = getattr(self, 'member_registered_mail',
> - getattr(self, 'registered_notify_template'))
> + method = getattr(self, 'member_registered_mail')
> kw = {'member': member, 'password': password, 'email': email}
>
> if getattr(aq_base(method), 'isDocTemp', 0):
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-CMF
mailing list