- Timestamp:
- 16 Jun 2021, 12:52:36 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py
r16385 r16509 18 18 19 19 from zope import schema 20 from waeup.kofa.interfaces import validate_email, IKofaObject 20 from waeup.kofa.interfaces import ( 21 validate_email, IKofaObject, 22 academic_sessions_vocab) 21 23 from waeup.kofa.students.vocabularies import StudyLevelSource 24 from kofacustom.nigeria.interfaces import GradingSystemSource 22 25 from kofacustom.nigeria.students.interfaces import ( 23 26 INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance, … … 30 33 from waeup.uniben.interfaces import MessageFactory as _ 31 34 35 32 36 class ICustomStudentBase(INigeriaStudentBase): 33 37 """Representation of student base data. … … 291 295 """ 292 296 297 grading_sys = schema.Choice( 298 title = _(u'Grading System'), 299 source = GradingSystemSource(), 300 required = True, 301 default = 'A', 302 ) 303 304 class ICustomCourseTicketImport(ICustomCourseTicket): 305 """An interface for importing course results and nothing more. 306 """ 307 308 score = schema.Int( 309 title = _(u'Score'), 310 required = False, 311 readonly = False, 312 ) 313 314 level_session = schema.Choice( 315 title = _(u'Level Session'), 316 source = academic_sessions_vocab, 317 required = False, 318 readonly = False, 319 ) 320 321 grading_sys = schema.Choice( 322 title = _(u'Grading System'), 323 source = GradingSystemSource(), 324 required = False, 325 default = 'A', 326 ) 327 293 328 class ICustomStudentUpdateByRegNo(INigeriaStudentUpdateByRegNo): 294 329 """Representation of a student. Skip regular reg_number validation.
Note: See TracChangeset for help on using the changeset viewer.