- Timestamp:
- 4 Nov 2020, 22:25:27 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r16299 r16300 350 350 entries.sort() 351 351 deleted = [] 352 emails_tobesent = ''352 emails_tobesent = [] 353 353 for entry in entries: 354 354 if 'remove' in form: … … 356 356 deleted.append(entry) 357 357 if 'send_email' in form and self.context[entry].email: 358 emails_tobesent += '%s,' % encode_address(358 emails_tobesent.append(( 359 359 self.context[entry].email, 360 self.context[entry].student_id) 360 self.context[entry].student_id)) 361 361 if 'send_email' in form and not len(emails_tobesent): 362 362 self.flash(_('No email address found.'), type="warning") 363 363 return 364 364 if len(emails_tobesent): 365 args = {'bcc_to': emails_tobesent .strip(',')}365 args = {'bcc_to': emails_tobesent} 366 366 self.redirect(self.url(self.context) + 367 367 '/send_bulk_email?%s' % urlencode(args)) … … 570 570 self.config.name, 571 571 data['body'],data['subject'], 572 data['bcc_to']) 572 eval(data['bcc_to']) 573 ) 573 574 if success: 574 575 self.flash(_('Your message has been sent.'))
Note: See TracChangeset for help on using the changeset viewer.