Changeset 14014 for main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
- Timestamp:
- 4 Jul 2016, 09:02:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r13617 r14014 317 317 subject, body, config) 318 318 319 def inviteReferee(self, referee, applicant, url_info=None): 320 """Send invitation email to referee. 321 """ 322 config = grok.getSite()['configuration'] 323 subject = 'Request for referee report from %s' % config.name 324 text = _(u"""Dear ${a}, 325 326 ${c} 327 328 Regards 329 """) 330 from_name = config.name_admin 331 from_addr = config.email_admin 332 rcpt_name = referee.name 333 rcpt_addr = referee.email 334 text = _(text, mapping={ 335 'a': rcpt_name, 336 'c': url_info}) 337 338 body = translate(text, 'waeup.kofa', 339 target_language=self.PORTAL_LANGUAGE) 340 return send_mail( 341 from_name, from_addr, rcpt_name, rcpt_addr, 342 subject, body, config) 343 319 344 def getPaymentItem(self, payment): 320 345 """Return payment item. This method can be used to customize the
Note: See TracChangeset for help on using the changeset viewer.