- Timestamp:
- 26 May 2016, 13:44:09 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/batching.py
r8911 r13865 27 27 ICustomStudent, ICustomStudentUpdateByRegNo, 28 28 ICustomStudentUpdateByMatricNo, 29 ICustomStudentOnlinePayment 29 ICustomStudentOnlinePayment, 30 ICustomCourseTicketImport, 30 31 ) 31 32 from waeup.kofa.students.batching import ( 32 StudentProcessor, StudentOnlinePaymentProcessor) 33 StudentProcessor, StudentOnlinePaymentProcessor, 34 CourseTicketProcessor) 33 35 34 36 class CustomStudentProcessor(StudentProcessor): … … 43 45 """ 44 46 iface = ICustomStudentOnlinePayment 47 48 class CustomCourseTicketProcessor(CourseTicketProcessor): 49 """A batch processor for ICourseTicket objects. 50 """ 51 iface = ICustomCourseTicketImport 52 53 @property 54 def available_fields(self): 55 fields = [ 56 'student_id','reg_number','matric_number', 57 'mandatory', 'score', 'ca', 'carry_over', 'automatic', 58 'level_session' 59 ] + self.additional_fields 60 return sorted(fields) -
main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py
r13834 r13865 21 21 from zope.catalog.interfaces import ICatalog 22 22 from zope.component import getUtility 23 from waeup.kofa.interfaces import IKofaObject23 from waeup.kofa.interfaces import (IKofaObject, academic_sessions_vocab) 24 24 from waeup.kofa.students.vocabularies import ( 25 25 StudyLevelSource, contextual_reg_num_source … … 310 310 ) 311 311 312 class ICustomCourseTicketImport(ICustomCourseTicket): 313 """An interface for importing course results and nothing more. 314 """ 315 score = schema.Int( 316 title = _(u'Score'), 317 required = False, 318 readonly = False, 319 ) 320 321 ca = schema.Int( 322 title = _(u'CA'), 323 required = False, 324 readonly = False, 325 ) 326 327 level_session = schema.Choice( 328 title = _(u'Level Session'), 329 source = academic_sessions_vocab, 330 required = False, 331 readonly = False, 332 ) 333 312 334 ICustomCourseTicket['ca'].order = ICustomCourseTicket['score'].order 313 335
Note: See TracChangeset for help on using the changeset viewer.