Ignore:
Timestamp:
2 Aug 2016, 08:55:19 (8 years ago)
Author:
Henrik Bettermann
Message:

Draft email to be sent to referees.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r14011 r14040  
    440440
    441441class IApplicantTestData(IKofaObject):
    442     """This interface is for demonstration and test purposes only.
     442    """This interface is for demonstration and testing only.
    443443    It can be omitted in customized versions of Kofa.
    444444    """
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r14016 r14040  
    16621662        self.browser.getControl(name="confirm_passport").value = True
    16631663        self.browser.getControl("Finally Submit").click()
    1664         self.assertEqual(
    1665             [u'Sending email from no-reply@waeup.org to linda@forest.de:',
    1666              u'Message:',
    1667              u'msg: MIME-Version: 1.0',
    1668              u'msg: Content-Type: text/plain; charset="us-ascii"',
    1669              u'msg: Content-Transfer-Encoding: 7bit',
    1670              u'msg: From: Administrator <no-reply@waeup.org>',
    1671              u'msg: To: Linda Tree <linda@forest.de>',
    1672              u'msg: Reply-To: Administrator <contact@waeup.org>',
    1673              u'msg: Subject: Request for referee report from Sample University',
    1674              u'msg: ',
    1675             ], self.get_fake_smtp_output().split('\n')[:10]
     1664        mandate_id_0 = self.app['mandates'].keys()[0]
     1665        mandate_id_1 = self.app['mandates'].keys()[1]
     1666        self.assertMatches(
     1667            'Sending email from no-reply@waeup.org to linda@forest.de:'
     1668            '\nMessage:'
     1669            '\nmsg: MIME-Version: 1.0\nmsg: Content-Type: text/plain; charset="us-ascii"'
     1670            '\nmsg: Content-Transfer-Encoding: 7bit'
     1671            '\nmsg: From: Administrator <no-reply@waeup.org>'
     1672            '\nmsg: To: Linda Tree <linda@forest.de>'
     1673            '\nmsg: Reply-To: Administrator <contact@waeup.org>'
     1674            '\nmsg: Subject: Request for referee report from Sample University'
     1675            '\nmsg: '
     1676            '\nmsg: Dear Linda Tree,'
     1677            '\nmsg: '
     1678            '\nmsg: The candidate with Id app2014_372052 and name John Anthony Tester applied to'
     1679            '\nmsg: the Sample University to study Unnamed Certificate for the 2014/2015 session.'
     1680            '\nmsg: The candidate has listed you as referee. You are thus required to kindly use'
     1681            '\nmsg: the link below to provide your referral remarks on or before'
     1682            '\nmsg: 2016-08-12 08:32:41.619671+00:00.'
     1683            '\nmsg: '
     1684            '\nmsg: Report link: http://localhost/app/mandate?mandate_id=%s'
     1685            '\nmsg: '
     1686            '\nmsg: Thank You'
     1687            '\nmsg: '
     1688            '\nmsg: The Secretary'
     1689            '\nmsg: Post Graduate School'
     1690            '\nmsg: Sample University'
     1691            '\nmsg: '
     1692            '\nSending email from no-reply@waeup.org to otis@stones.de:'
     1693            '\nMessage:'
     1694            '\nmsg: MIME-Version: 1.0'
     1695            '\nmsg: Content-Type: text/plain; charset="us-ascii"'
     1696            '\nmsg: Content-Transfer-Encoding: 7bit'
     1697            '\nmsg: From: Administrator <no-reply@waeup.org>'
     1698            '\nmsg: To: Otis Stone <otis@stones.de>'
     1699            '\nmsg: Reply-To: Administrator <contact@waeup.org>'
     1700            '\nmsg: Subject: Request for referee report from Sample University'
     1701            '\nmsg: '
     1702            '\nmsg: Dear Otis Stone,'
     1703            '\nmsg: '
     1704            '\nmsg: The candidate with Id app2014_<6-DIGITS> and name John Anthony Tester applied to'
     1705            '\nmsg: the Sample University to study Unnamed Certificate for the 2014/2015 session.'
     1706            '\nmsg: The candidate has listed you as referee. You are thus required to kindly use'
     1707            '\nmsg: the link below to provide your referral remarks on or before'
     1708            '\nmsg: <YYYY-MM-DD hh:mm:ss>.<6-DIGITS>+00:00.'
     1709            '\nmsg: '
     1710            '\nmsg: Report link: http://localhost/app/mandate?mandate_id=%s'
     1711            '\nmsg: '
     1712            '\nmsg: Thank You'
     1713            '\nmsg: '
     1714            '\nmsg: The Secretary'
     1715            '\nmsg: Post Graduate School'
     1716            '\nmsg: Sample University'
     1717            '\nmsg: ' % (mandate_id_0, mandate_id_1),
     1718            self.get_fake_smtp_output()
    16761719            )
    16771720        self.assertTrue(
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r14012 r14040  
    291291        required = True,
    292292        constraint=validate_email,
    293         description = _(u'Email Address'),
     293        description = _(
     294            u'Email Address (referees will be automatically invited by email '
     295             'after final submission of this form)'),
    294296        )
    295297
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r14014 r14040  
    324324        text = _(u"""Dear ${a},
    325325
    326 ${c}
    327 
    328 Regards
     326The candidate with Id ${b} and name ${c} applied to
     327the ${d} to study ${e} for the ${f} session.
     328The candidate has listed you as referee. You are thus required to kindly use
     329the link below to provide your referral remarks on or before
     330${g}.
     331
     332${h}
     333
     334Thank You
     335
     336The Secretary
     337Post Graduate School
     338${d}
    329339""")
    330340        from_name = config.name_admin
     
    332342        rcpt_name = referee.name
    333343        rcpt_addr = referee.email
     344        session = '%s/%s' % (
     345            applicant.__parent__.year, applicant.__parent__.year+1)
    334346        text = _(text, mapping={
    335347            'a': rcpt_name,
    336             'c': url_info})
     348            'b': applicant.applicant_id,
     349            'c': applicant.display_fullname,
     350            'd': config.name,
     351            'e': applicant.course1.title,
     352            'f': session,
     353            'g': applicant.__parent__.enddate,
     354            'h': url_info,
     355            })
    337356
    338357        body = translate(text, 'waeup.kofa',
Note: See TracChangeset for help on using the changeset viewer.