Changeset 10594 for main/waeup.kwarapoly/trunk
- Timestamp:
- 6 Sep 2013, 06:07:02 (11 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/interfaces.py
r10590 r10594 67 67 adding them to the UG_OMIT* tuples. 68 68 """ 69 69 sex = schema.Choice( 70 title = _(u'Sex'), 71 source = GenderSource(), 72 required = False, 73 ) 70 74 nationality = schema.Choice( 71 75 source = nats_vocab, 72 76 title = _(u'Nationality'), 73 required = True,77 required = False, 74 78 ) 75 79 lga = schema.Choice( … … 93 97 title = _(u'1st Choice Course of Study'), 94 98 source = AppCatCertificateSource(), 95 required = True,99 required = False, 96 100 ) 97 101 course2 = schema.Choice( … … 194 198 title = _(u'Result uploaded'), 195 199 default = False, 200 required = False, 196 201 ) 197 202 student_id = schema.TextLine( … … 208 213 title = _(u'Form locked'), 209 214 default = False, 210 ) 215 required = False, 216 ) 217 218 ICustomUGApplicant[ 219 'sex'].order = IApplicantBaseData['sex'].order 211 220 212 221 class ICustomPGApplicant(INigeriaPGApplicant): … … 249 258 """ 250 259 260 sex = schema.Choice( 261 title = _(u'Sex'), 262 source = GenderSource(), 263 required = True, 264 ) 265 course1 = schema.Choice( 266 title = _(u'1st Choice Course of Study'), 267 source = AppCatCertificateSource(), 268 required = True, 269 ) 270 271 ICustomUGApplicantEdit[ 272 'course1'].order = ICustomUGApplicant['course1'].order 273 ICustomUGApplicantEdit[ 274 'sex'].order = ICustomUGApplicant['sex'].order 275 251 276 class ICustomPGApplicantEdit(INigeriaPGApplicantEdit): 252 277 """A postgraduate applicant interface for editing. -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/tests/test_browser.py
r10133 r10594 106 106 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 107 107 self.browser.getControl(name="form.lga").value = ['foreigner'] 108 self.browser.getControl(name="form.nationality").value = ['NG']109 self.browser.getControl(name="form.sex").value = ['m']108 #self.browser.getControl(name="form.nationality").value = ['NG'] 109 #self.browser.getControl(name="form.sex").value = ['m'] 110 110 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 111 111 … … 135 135 self.assertTrue("Higher" in self.browser.contents) 136 136 self.assertTrue("'O' Level" in self.browser.contents) 137 138 self.browser.open(self.ndftapplicant_path + '/manage') 139 # Manager can fill and save the form 140 self.fill_correct_values() 141 self.browser.getControl("Save").click() 142 self.assertMatches('...Form has been saved...', self.browser.contents) 137 143 return
Note: See TracChangeset for help on using the changeset viewer.