Преглед на файлове

Fix, the mail title cause an unexpected error

master
tr4ck3ur des JM2L преди 8 години
родител
ревизия
a378555846
променени са 1 файла, в които са добавени 4 реда и са изтрити 5 реда
  1. +4
    -5
      jm2l/__init__.py

+ 4
- 5
jm2l/__init__.py Целия файл

@@ -41,13 +41,12 @@ def mailer_tasks(config):
# Prepare Plain Text Message :
Mail_template = Template(filename='jm2l/templates/mail_plain.mako')
mail_plain = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks", output_encoding='ascii',)
mail_plain = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks")
# Prepare HTML Message :
Mail_template = Template(filename='jm2l/templates/mail_html.mako')
mail_html = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks", output_encoding='ascii',)
mail_html = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks")
# Prepare Message
message = Message(subject="[JM2L] Rappel des Tâches pour les JM2L",
message = Message(subject="[JM2L] Rappel des Tâches pour les JM2L".decode('utf-8'),
sender="contact@jm2l.linux-azur.org",
recipients=[StaffUser.mail],
body=mail_plain, html=mail_html)
@@ -93,7 +92,7 @@ def main(global_config, **settings):
config.add_static_view('vendor', 'static/vendor', cache_max_age=3600)
config.add_static_view('upload', 'upload', cache_max_age=3600)
config.add_static_view('resources', 'resources', cache_max_age=3600)
# ICal Routes
config.add_route('progr_iCal', '/{year:\d+}/JM2L.ics')



Зареждане…
Отказ
Запис