Changeset 7984 for main/waeup.kofa/trunk
- Timestamp:
- 26 Mar 2012, 10:53:00 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r7933 r7984 197 197 code = schema.TextLine( 198 198 title = _(u'Code'), 199 default = u'-',199 #default = u'-', 200 200 required = True, 201 201 readonly = True, … … 205 205 title = _(u'Title'), 206 206 required = True, 207 default = u'-',207 #default = u'-', 208 208 readonly = True, 209 209 ) … … 212 212 title = _(u'Application Target'), 213 213 required = True, 214 default = None,215 214 source = ApplicationTypeSource(), 216 215 readonly = True, … … 220 219 title = _(u'Entry Level'), 221 220 vocabulary = course_levels, 222 default = 100,221 #default = 100, 223 222 required = True, 224 223 ) … … 227 226 title = _(u'Year of Entrance'), 228 227 required = True, 229 default = None,230 228 values = year_range(), 231 229 readonly = True, … … 235 233 title = _(u'Applicants Container Type'), 236 234 required = True, 237 default = None,238 235 source = ApplicantContainerProviderSource(), 239 236 readonly = True, … … 251 248 title = _(u'Category for the grouping of certificates'), 252 249 required = True, 253 default = None,254 250 source = AppCatSource(), 255 251 ) … … 271 267 title = _(u'Application Start Date'), 272 268 required = False, 273 default = None,274 269 ) 275 270 … … 277 272 title = _(u'Application Closing Date'), 278 273 required = False, 279 default = None,280 274 ) 281 275 282 276 strict_deadline = schema.Bool( 283 277 title = _(u'Forbid additions after deadline (enddate)'), 284 required = True,278 required = False, 285 279 default = True, 286 280 ) … … 322 316 title = _(u'Application Target'), 323 317 required = True, 324 default = None,325 318 source = ApplicationTypeSource(), 326 319 readonly = False, … … 330 323 title = _(u'Year of Entrance'), 331 324 required = True, 332 default = None,333 325 values = year_range(), 334 326 readonly = False, … … 338 330 title = _(u'Applicants Container Type'), 339 331 required = True, 340 default = None,341 332 source = ApplicantContainerProviderSource(), 342 333 readonly = False, … … 372 363 readonly = False, 373 364 required = True, 374 default = None,375 365 source = contextual_reg_num_source, 376 366 ) … … 400 390 title = _(u'State/LGA'), 401 391 default = 'foreigner', 402 required = True,392 required = False, 403 393 ) 404 394 sex = schema.Choice( 405 395 title = _(u'Sex'), 406 396 source = GenderSource(), 407 default = u'm',408 397 required = True, 409 398 ) … … 431 420 title = _(u'School Grades'), 432 421 value_type = ResultEntryField(), 433 required = True,422 required = False, 434 423 default = [], 435 424 ) … … 449 438 title = _(u'Admitted Course of Study'), 450 439 source = CertificateSource(), 451 default = None,452 440 required = False, 453 441 ) … … 527 515 title = _(u'Admitted Course of Study'), 528 516 source = CertificateSource(), 529 default = None,530 517 required = False, 531 518 readonly = True, … … 550 537 reg_number = schema.TextLine( 551 538 title = u'Registration Number', 552 default = None,553 539 required = False, 554 540 ) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/sample_applicant_data.csv
r7270 r7984 1 container_code,reg_number,firstname,lastname,date_of_birth,email,course1 2 dp2011,1001,Aaren,Pieri,1990-01-02,xx@yy.zz,CERT1 3 dp2011,1002,Aaren,Finau,1990-01-03,xx@yy.zz,CERT1 4 dp2011,1003,Aaren,Berson,1990-01-04,xx@yy.zz,CERT1 1 container_code,reg_number,firstname,lastname,date_of_birth,email,course1,sex 2 dp2011,1001,Aaren,Pieri,1990-01-02,xx@yy.zz,CERT1,m 3 dp2011,1002,Aaren,Finau,1990-01-03,xx@yy.zz,CERT1,m 4 dp2011,1003,Aaren,Berson,1990-01-04,xx@yy.zz,CERT1,m -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/sample_faulty_applicant_data.csv
r7507 r7984 1 container_code,reg_number,firstname,lastname,date_of_birth,email,course1 2 dp2011,1001,Aaren,Pieri,01/02/1990,xx@yy.zz,CERT1 1 container_code,reg_number,firstname,lastname,date_of_birth,email,course1,sex 2 dp2011,1001,Aaren,Pieri,01/02/1990,xx@yy.zz,CERT1,m -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r7927 r7984 82 82 applicantscontainer.prefix = 'app' 83 83 applicantscontainer.year = 2009 84 applicantscontainer.entry_level = 100 84 85 applicantscontainer.application_category = 'basic' 85 86 delta = timedelta(days=10) … … 246 247 self.browser.getControl(name="form.prefix").value = ['app'] 247 248 self.browser.getControl(name="form.year").value = ['2010'] 249 self.browser.getControl(name="form.entry_level").value = ['100'] 248 250 self.browser.getControl(name="form.provider").value = [ 249 251 'waeup.kofa.applicants.ApplicantsContainer'] … … 261 263 self.browser.getControl(name="form.prefix").value = ['app'] 262 264 self.browser.getControl(name="form.year").value = ['2010'] 265 self.browser.getControl(name="form.entry_level").value = ['100'] 263 266 self.browser.getControl(name="form.provider").value = [ 264 267 'waeup.kofa.applicants.ApplicantsContainer'] … … 276 279 self.browser.getControl(name="form.prefix").value = ['app'] 277 280 self.browser.getControl(name="form.year").value = ['2010'] 281 self.browser.getControl(name="form.entry_level").value = ['100'] 278 282 self.browser.getControl(name="form.provider").value = [ 279 283 'waeup.kofa.applicants.ApplicantsContainer'] -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r7925 r7984 52 52 container.prefix = list(ApplicationTypeSource()(container))[0] 53 53 container.year = 2012 54 container.entry_level = 100 54 55 provider = [ 55 56 x for x in getUtilitiesFor(IApplicantsContainerProvider)
Note: See TracChangeset for help on using the changeset viewer.