Odstraněňo staré testování e-mailů
This commit is contained in:
parent
8fef21900c
commit
8dc3a2ba98
5 changed files with 0 additions and 16 deletions
|
@ -194,13 +194,6 @@ class KorekturyView(generic.TemplateView):
|
||||||
if email:
|
if email:
|
||||||
emails.discard(email)
|
emails.discard(email)
|
||||||
|
|
||||||
if not settings.POSLI_MAILOVOU_NOTIFIKACI:
|
|
||||||
print("Poslal bych upozornění na tyto adresy: ", " ".join(emails))
|
|
||||||
print("---- Upozornění:")
|
|
||||||
print(text)
|
|
||||||
print("---- Konec upozornění")
|
|
||||||
return
|
|
||||||
|
|
||||||
EmailMessage(
|
EmailMessage(
|
||||||
subject=subject,
|
subject=subject,
|
||||||
body=text,
|
body=text,
|
||||||
|
|
|
@ -342,10 +342,6 @@ KOREKTURY_IMG_DIR = os.path.join('korektury', 'img')
|
||||||
CISLO_IMG_DIR = os.path.join('cislo', 'img')
|
CISLO_IMG_DIR = os.path.join('cislo', 'img')
|
||||||
|
|
||||||
|
|
||||||
# E-MAIL NOTIFICATIONS
|
|
||||||
POSLI_MAILOVOU_NOTIFIKACI = False
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Logování chyb
|
# Logování chyb
|
||||||
class InvalidTemplateVariable(str):
|
class InvalidTemplateVariable(str):
|
||||||
|
|
|
@ -68,5 +68,4 @@ LOGGING['handlers']['registration_error_log']['filename'] = '/home/mam-web/logs/
|
||||||
|
|
||||||
|
|
||||||
# E-MAIL NOTIFICATIONS
|
# E-MAIL NOTIFICATIONS
|
||||||
POSLI_MAILOVOU_NOTIFIKACI = True
|
|
||||||
LOCAL_TEST_PROD = "prod"
|
LOCAL_TEST_PROD = "prod"
|
||||||
|
|
|
@ -72,7 +72,6 @@ LOGGING['handlers']['registration_error_log']['filename'] = '/home/mam-web/logs/
|
||||||
FILE_UPLOAD_PERMISSIONS = 0o440
|
FILE_UPLOAD_PERMISSIONS = 0o440
|
||||||
|
|
||||||
# Testování e-mailů
|
# Testování e-mailů
|
||||||
POSLI_MAILOVOU_NOTIFIKACI = True
|
|
||||||
EMAIL_BACKEND = 'various.mail_prefixer.PrefixingMailBackend'
|
EMAIL_BACKEND = 'various.mail_prefixer.PrefixingMailBackend'
|
||||||
# TODO Pouze na otestování testu… Zvolit konferu!
|
# TODO Pouze na otestování testu… Zvolit konferu!
|
||||||
# XXX: Je to pole, protože implementační detail backendu.
|
# XXX: Je to pole, protože implementační detail backendu.
|
||||||
|
|
|
@ -284,9 +284,6 @@ class Cislo(SeminarModelBase):
|
||||||
|
|
||||||
def posli(subject, text, resitele):
|
def posli(subject, text, resitele):
|
||||||
emaily = map(lambda resitel: resitel.osoba.email, resitele)
|
emaily = map(lambda resitel: resitel.osoba.email, resitele)
|
||||||
if not settings.POSLI_MAILOVOU_NOTIFIKACI:
|
|
||||||
print("Poslal bych upozornění na tyto adresy: ", " ".join(emaily))
|
|
||||||
return
|
|
||||||
|
|
||||||
email = EmailMessage(
|
email = EmailMessage(
|
||||||
subject=subject,
|
subject=subject,
|
||||||
|
|
Loading…
Reference in a new issue