From 7794c77e43f8c29ceefd58f446aef98e15d181ea Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 22 Dec 2011 11:06:53 +0000 Subject: [PATCH] render the value of the email password in the settings page, otherwise it gets lost on every edit of email settings git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1216 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/settings/email.py | 2 +- forum/utils/mail.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forum/settings/email.py b/forum/settings/email.py index 7922385..71a7136 100644 --- a/forum/settings/email.py +++ b/forum/settings/email.py @@ -31,7 +31,7 @@ EMAIL_HOST_PASSWORD = Setting('EMAIL_HOST_PASSWORD', '', EMAIL_SET, dict( label = _("Email Password"), help_text = _("The password for your SMTP connection."), required=False, -widget=PasswordInput)) +widget=PasswordInput(render_value=True))) EMAIL_USE_TLS = Setting('EMAIL_USE_TLS', False, EMAIL_SET, dict( label = _("Use TLS"), diff --git a/forum/utils/mail.py b/forum/utils/mail.py index cecb5b4..4ab2a69 100644 --- a/forum/utils/mail.py +++ b/forum/utils/mail.py @@ -33,7 +33,7 @@ def create_connection(): connection = SMTP(str(settings.EMAIL_HOST), str(settings.EMAIL_PORT), local_hostname=DNS_NAME.get_fqdn()) - if (bool(settings.EMAIL_USE_TLS)): + if bool(settings.EMAIL_USE_TLS): connection.ehlo() connection.starttls() connection.ehlo() -- 2.39.5