Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 1830:4ac11e7fa11a
Fix mailer bug [SF#817470]...
...and add docstrings to prevent this from happening again.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Sat, 04 Oct 2003 11:21:47 +0000 |
| parents | 85fd3d0e7d81 |
| children | 7c84534aec13 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Fri Oct 03 19:15:24 2003 +0000 +++ b/roundup/cgi/client.py Sat Oct 04 11:21:47 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.140 2003-09-24 14:53:58 jlgijsbers Exp $ +# $Id: client.py,v 1.141 2003-10-04 11:21:47 jlgijsbers Exp $ __doc__ = """ WWW request handler (also used in the stand-alone server). @@ -773,7 +773,7 @@ %(url)s?@action=confrego&otk=%(otk)s """ % {'name': props['username'], 'tracker': tracker_name, 'url': self.base, 'otk': otk, 'tracker_email': tracker_email} - if not self.standard_message(props['address'], subject, body, + if not self.standard_message([props['address']], subject, body, tracker_email): return @@ -878,7 +878,7 @@ Your password is now: %(password)s '''%{'name': name, 'password': newpw} - if not self.standard_message(address, subject, body): + if not self.standard_message([address], subject, body): return self.ok_message.append('Password reset and email sent to %s'%address) @@ -921,7 +921,7 @@ You should then receive another email with the new password. '''%{'name': name, 'tracker': tracker_name, 'url': self.base, 'otk': otk} - if not self.standard_message(address, subject, body): + if not self.standard_message([address], subject, body): return self.ok_message.append('Email sent to %s'%address)
