Project

General

Profile

wcs-cron-email.diff

Thomas Noël, 17 January 2012 10:03 AM

Download (666 Bytes)

View differences:


  

wcs/qommon/emails.py (copie de travail)
164 164
        email_from=None, exclude_current_user=False, email_type=None,
165 165
        want_html=True, hide_recipients = False, fire_and_forget = False,
166 166
        smtp_timeout = None, attachments = ()):
167

  
168
    if not get_request():
169
        # we are not processing a request, no sense to delay the handling
170
        # (for example when running a cronjob)
171
        fire_and_forget = False
172

  
167 173
    emails_cfg = get_cfg('emails', {})
168 174
    footer = emails_cfg.get('footer')
169 175