|
@@ -41,13 +41,12 @@ def mailer_tasks(config): |
|
|
|
|
|
|
|
|
# Prepare Plain Text Message : |
|
|
# Prepare Plain Text Message : |
|
|
Mail_template = Template(filename='jm2l/templates/mail_plain.mako') |
|
|
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 : |
|
|
# Prepare HTML Message : |
|
|
Mail_template = Template(filename='jm2l/templates/mail_html.mako') |
|
|
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 |
|
|
# 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", |
|
|
sender="contact@jm2l.linux-azur.org", |
|
|
recipients=[StaffUser.mail], |
|
|
recipients=[StaffUser.mail], |
|
|
body=mail_plain, html=mail_html) |
|
|
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('vendor', 'static/vendor', cache_max_age=3600) |
|
|
config.add_static_view('upload', 'upload', cache_max_age=3600) |
|
|
config.add_static_view('upload', 'upload', cache_max_age=3600) |
|
|
config.add_static_view('resources', 'resources', cache_max_age=3600) |
|
|
config.add_static_view('resources', 'resources', cache_max_age=3600) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ICal Routes |
|
|
# ICal Routes |
|
|
config.add_route('progr_iCal', '/{year:\d+}/JM2L.ics') |
|
|
config.add_route('progr_iCal', '/{year:\d+}/JM2L.ics') |
|
|
|
|
|
|
|
|