Changeset 8983 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 12 Jul 2012, 11:43:12 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8922 r8983 492 492 grok.template('applicantdisplaypage') 493 493 form_fields = grok.AutoFields(IApplicant).omit( 494 'locked', 'course_admitted', 'password' )494 'locked', 'course_admitted', 'password', 'suspended') 495 495 label = _('Applicant') 496 496 pnav = 3 … … 881 881 form_fields = grok.AutoFields(IApplicantEdit).omit( 882 882 'locked', 'course_admitted', 'student_id', 883 'screening_score', 883 'screening_score', 'suspended' 884 884 ) 885 885 form_fields['applicant_id'].for_display = True -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt
r8273 r8983 1 <h2> 2 ... <span tal:replace="context/translated_state">APPLICATIONSTATE</span> ... 1 <h2 i18n:domain="waeup.kofa"> 2 ... 3 <span tal:replace="context/translated_state">APPLICATIONSTATE 4 </span> 5 <span tal:omit-tag="" 6 i18n:translate="" tal:condition="context/suspended">(account suspended) 7 </span> 8 ... 3 9 </h2> 4 10 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt
r8486 r8983 3 3 autocomplete="off"> 4 4 5 <h2> 6 ... <span tal:replace="context/translated_state">APPLICATIONSTATE</span> ... 5 <h2 i18n:domain="waeup.kofa"> 6 ... 7 <span tal:replace="context/translated_state">APPLICATIONSTATE 8 </span> 9 <span tal:omit-tag="" 10 i18n:translate="" tal:condition="context/suspended">(account suspended) 11 </span> 12 ... 7 13 </h2> 8 14 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8801 r8983 322 322 application_number = Attribute('The key under which the record is stored') 323 323 324 suspended = schema.Bool( 325 title = _(u'Account suspended'), 326 default = False, 327 ) 328 324 329 applicant_id = schema.TextLine( 325 330 title = _(u'Applicant Id'), -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_authentication.py
r8351 r8983 64 64 email = None 65 65 phone = None 66 suspended = False 66 67 67 68 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8778 r8983 821 821 self.browser.getControl("Final Submit").click() 822 822 self.assertTrue( 823 ' ... submitted ...' in self.browser.contents)823 'Application submitted' in self.browser.contents) 824 824 # ... or allow submission after deadline. 825 825 IWorkflowState(self.applicant).setState('paid') … … 830 830 self.browser.getControl("Final Submit").click() 831 831 self.assertTrue( 832 ' ... submitted ...' in self.browser.contents)832 'Application submitted' in self.browser.contents) 833 833 self.browser.goBack(count=1) 834 834 self.browser.getControl("Save").click() -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r8724 r8983 145 145 'history,lastname,locked,middlename,notice,password,phone,' 146 146 'reg_number,screening_score,screening_venue,sex,state,' 147 'student_id, container_code\r\n'147 'student_id,suspended,container_code\r\n' 148 148 'dp2011_654321,,654321,,,,,Anna Tester,,Anna,' 149 149 in result) 150 150 self.assertTrue( 151 151 'Application initialized by system\'],Tester,' 152 '0,,,,,,,,,initialized,, dp2011\r\n'152 '0,,,,,,,,,initialized,,0,dp2011\r\n' 153 153 in result) 154 154 return … … 169 169 'history,lastname,locked,middlename,notice,password,phone,' 170 170 'reg_number,screening_score,screening_venue,sex,state,' 171 'student_id, container_code\r\n'171 'student_id,suspended,container_code\r\n' 172 172 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 173 173 'Anna M. Tester,anna@sample.com,Anna,' … … 176 176 'Application initialized by system\'],' 177 177 'Tester,0,M.,"Some notice\nin lines.",any password,' 178 '+234-123-12345,123456,98,Exam Room,f,initialized,, dp2011\r\n'178 '+234-123-12345,123456,98,Exam Room,f,initialized,,0,dp2011\r\n' 179 179 in result) 180 180 … … 193 193 'history,lastname,locked,middlename,notice,password,phone,' 194 194 'reg_number,screening_score,screening_venue,sex,state,' 195 'student_id, container_code\r\n'195 'student_id,suspended,container_code\r\n' 196 196 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 197 197 'Anna M. Tester,anna@sample.com,Anna,' … … 200 200 'Application initialized by system\'],' 201 201 'Tester,0,M.,"Some notice\nin lines.",any password,' 202 '+234-123-12345,123456,98,Exam Room,f,initialized,, dp2011\r\n'203 in result) 204 return 202 '+234-123-12345,123456,98,Exam Room,f,initialized,,0,dp2011\r\n' 203 in result) 204 return
Note: See TracChangeset for help on using the changeset viewer.