- Timestamp:
- 4 Dec 2011, 08:36:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7260 r7262 259 259 readonly = False, 260 260 ) 261 262 261 reg_no = schema.TextLine( 263 262 title = u'JAMB Registration Number', … … 269 268 required = False, 270 269 readonly = True, 271 )272 course1 = schema.Choice(273 title = u'1st Choice Course of Study',274 source = AppCatCertificateSource(),275 required = True,276 )277 course2 = schema.Choice(278 title = u'2nd Choice Course of Study',279 source = AppCatCertificateSource(),280 required = False,281 270 ) 282 271 firstname = schema.TextLine( … … 318 307 required = False, 319 308 ) 320 #passport = ImageFile( 321 # title = u'Passport Photograph', 322 # #default = DEFAULT_PASSPORT_IMAGE_MALE, 323 # defaultFactory = default_passport_image, 324 # description = u'Maximun file size is 20 kB.', 325 # required = True, 326 # max_size = 20480, 327 # ) 309 course1 = schema.Choice( 310 title = u'1st Choice Course of Study', 311 source = CertificateSource(), 312 required = True, 313 ) 314 course2 = schema.Choice( 315 title = u'2nd Choice Course of Study', 316 source = CertificateSource(), 317 required = False, 318 ) 328 319 329 320 # … … 371 362 Here we can repeat the fields from base data and set the 372 363 `required` and `readonly` attributes to True to further restrict 373 the data access. We cannot omit fields. This has to be done in the 364 the data access. Or we can allow only certain certificates to be 365 selected by choosing the appropriate source. 366 367 We cannot omit fields here. This has to be done in the 374 368 respective form page. 375 369 """ 370 371 course1 = schema.Choice( 372 title = u'1st Choice Course of Study', 373 source = AppCatCertificateSource(), 374 required = True, 375 ) 376 course2 = schema.Choice( 377 title = u'2nd Choice Course of Study', 378 source = AppCatCertificateSource(), 379 required = False, 380 ) 376 381 screening_score = schema.Int( 377 382 title = u'Screening Score',
Note: See TracChangeset for help on using the changeset viewer.