Rushabh Mehta 8 лет назад
Родитель
Сommit
e585e9c38b
2 измененных файлов: 3 добавлений и 1 удалений
  1. +1
    -1
      frappe/email/smtp.py
  2. +2
    -0
      frappe/translate.py

+ 1
- 1
frappe/email/smtp.py Просмотреть файл

@@ -66,7 +66,7 @@ def get_outgoing_email_account(raise_exception_not_set=True, append_to=None):
frappe.OutgoingEmailError)

if email_account:
if email_account.enable_outgoing:
if email_account.enable_outgoing and not getattr(email_account, 'from_site_config', False):
email_account.password = email_account.get_password()
email_account.default_sender = email.utils.formataddr((email_account.name, email_account.get("email_id")))



+ 2
- 0
frappe/translate.py Просмотреть файл

@@ -28,6 +28,8 @@ def guess_language(lang_list=None):

for l in lang_codes:
code = l.strip()
if not isinstance(code, unicode):
code = unicode(code, 'utf-8')
if code in lang_list or code == "en":
guess = code
break


Загрузка…
Отмена
Сохранить