Changeset 16976 for main/waeup.kofa/trunk/src/waeup/kofa/utils
- Timestamp:
- 29 Jun 2022, 10:24:59 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r16828 r16976 405 405 406 406 407 def informApplicant(self, applicant): 408 """Inform applicant that the application form was successfully 409 submitted. 410 """ 411 if not getattr(applicant.__parent__, 'send_email', False): 412 return 413 subject = 'Your application form was successfully submitted' 414 text = _(u"""Dear ${a}, 415 416 Your application ${b} has been successfully submitted to ${c}. 417 418 Regards 419 """) 420 config = grok.getSite()['configuration'] 421 from_name = config.name_admin 422 from_addr = config.email_admin 423 rcpt_name = applicant.display_fullname 424 rcpt_addr = applicant.email 425 session = '%s/%s' % ( 426 applicant.__parent__.year, applicant.__parent__.year+1) 427 text = _(text, mapping={ 428 'a': rcpt_name, 429 'b': applicant.applicant_id, 430 'c': config.name, 431 }) 432 body = translate(text, 'waeup.kofa', 433 target_language=self.PORTAL_LANGUAGE) 434 return send_mail( 435 from_name, from_addr, rcpt_name, rcpt_addr, 436 subject, body, config) 437 407 438 def inviteReferee(self, referee, applicant, url_info=None): 408 439 """Send invitation email to referee.
Note: See TracChangeset for help on using the changeset viewer.