Changeset 16976 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 29 Jun 2022, 10:24:59 (2 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r16960 r16976 1406 1406 mapping = {'a': emails_sent}) 1407 1407 IWorkflowInfo(self.context).fireTransition('submit') 1408 # Send confirmation email 1409 getUtility(IKofaUtils).informApplicant(self.context) 1408 1410 # application_date is used in export files for sorting. 1409 1411 # We can thus store utc. -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r16746 r16976 319 319 ) 320 320 321 send_email= schema.Bool( 322 title = _(u'Send email after submission'), 323 required = False, 324 default = False, 325 ) 326 321 327 def addApplicant(applicant): 322 328 """Add an applicant. -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r16801 r16976 1970 1970 referee2.name = u'Otis Stone' 1971 1971 referee2.email = 'otis@stones.de' 1972 self.applicant.__parent__.send_email = True 1972 1973 self.applicant.referees = [referee1, referee2] 1973 1974 self.assertFalse(referee1.email_sent) … … 2042 2043 '\nmsg: Sample University' 2043 2044 '\nmsg: ' 2045 '\nSending email from no-reply@waeup.org to xx@yy.zz:' 2046 '\nMessage:' 2047 '\nmsg: MIME-Version: 1.0' 2048 '\nmsg: Content-Type: text/plain; charset="us-ascii"' 2049 '\nmsg: Content-Transfer-Encoding: 7bit' 2050 '\nmsg: From: Administrator <no-reply@waeup.org>' 2051 '\nmsg: To: John Anthony Tester <xx@yy.zz>' 2052 '\nmsg: Reply-To: Administrator <contact@waeup.org>' 2053 '\nmsg: Subject: Your application form was successfully submitted' 2054 '\nmsg: ' 2055 '\nmsg: Dear John Anthony Tester,' 2056 '\nmsg: ' 2057 '\nmsg: Your application app2020_<6-DIGITS> has been successfully submitted to Sample University.' 2058 '\nmsg: ' 2059 '\nmsg: Regards' 2060 '\nmsg: ' 2044 2061 % (session_1, session_1, session_2, mandate_id_0, 2045 2062 session_1, session_1, session_2, mandate_id_1,), -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r15918 r16976 73 73 result, 74 74 'application_category,application_fee,application_slip_notice,code,' 75 'description,enddate,hidden,mode,prefix,s tartdate,'75 'description,enddate,hidden,mode,prefix,send_email,startdate,' 76 76 'strict_deadline,title,with_picture,year\r\n' 77 77 78 78 'basic,0.0,,dp2017,' 79 79 '"Some Description\nwith linebreak\n<<de>>man spriht deutsh",' 80 '2017-01-31 23:00:00+00:00#,0,,app, 2017-01-01 12:00:00+00:00#,1,'80 '2017-01-31 23:00:00+00:00#,0,,app,0,2017-01-01 12:00:00+00:00#,1,' 81 81 'General Studies,1,2017\r\n' 82 82 )
Note: See TracChangeset for help on using the changeset viewer.