|
|
@@ -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') |
|
|
|
|
|
|
|