forked from ScoDoc/ScoDoc
Ameliore notification mail saisie note
This commit is contained in:
parent
1f4a32a485
commit
ced6e92fa2
@ -252,8 +252,7 @@ def scolar_news_summary_rss(context, title, sco_url, n=5):
|
||||
|
||||
|
||||
def _send_news_by_mail(context, n):
|
||||
"""Notify by email
|
||||
"""
|
||||
"""Notify by email"""
|
||||
infos = _get_formsemestre_infos_from_news(context, n)
|
||||
formsemestre_id = infos.get("formsemestre_id", None)
|
||||
prefs = context.get_preferences(formsemestre_id=formsemestre_id)
|
||||
@ -265,8 +264,10 @@ def _send_news_by_mail(context, n):
|
||||
#
|
||||
txt = n["text"]
|
||||
if infos:
|
||||
txt += "\n\nSemestre %(titremois)s\n\n" % infos["sem"]
|
||||
txt += (
|
||||
'\n\nSemestre <a href="Notes/formsemestre_status?formsemestre_id=%(formsemestre_id)s">%(descr_sem)s</a>)'
|
||||
"""<a href="Notes/formsemestre_status?formsemestre_id=%(formsemestre_id)s">%(descr_sem)s</a>
|
||||
"""
|
||||
% infos
|
||||
)
|
||||
txt += "\n\nEffectué par: %(nomcomplet)s\n" % n["user_info"]
|
||||
|
Loading…
Reference in New Issue
Block a user