Ignore:
Timestamp:
25 Oct 2012, 21:52:10 (12 years ago)
Author:
Henrik Bettermann
Message:

Reorganize ICourseTicket. Add ICourseTicketImport which validates a new field called level_session.

Customize checkConversion of CourseTicketProcessor?:
If level_session is provided in row the importer checks if
the parent studylevel exists and if its level_session
attribute corresponds with the expected value in row. The error message
then tells us why course result import fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9411 r9420  
    11841184    grok.require('waeup.manageStudent')
    11851185    label = _('Add course ticket')
    1186     form_fields = grok.AutoFields(ICourseTicketAdd).omit(
    1187         'score', 'automatic', 'carry_over', 'credits', 'passmark')
     1186    form_fields = grok.AutoFields(ICourseTicketAdd)
    11881187    pnav = 4
    11891188
     
    12221221    grok.require('waeup.viewStudent')
    12231222    form_fields = grok.AutoFields(ICourseTicket)
    1224     grok.template('courseticketpage')
    12251223    pnav = 4
    12261224
     
    12371235    grok.name('manage')
    12381236    grok.require('waeup.manageStudent')
    1239     form_fields = grok.AutoFields(ICourseTicket).omit('credits', 'passmark')
    1240     grok.template('courseticketmanagepage')
     1237    form_fields = grok.AutoFields(ICourseTicket)
     1238    form_fields['title'].for_display = True
     1239    form_fields['fcode'].for_display = True
     1240    form_fields['dcode'].for_display = True
     1241    form_fields['semester'].for_display = True
     1242    form_fields['passmark'].for_display = True
     1243    form_fields['credits'].for_display = True
     1244    form_fields['mandatory'].for_display = True
     1245    form_fields['automatic'].for_display = True
    12411246    pnav = 4
    12421247
     
    21812186    grok.name('ctadd')
    21822187    grok.require('waeup.handleStudent')
    2183     form_fields = grok.AutoFields(ICourseTicketAdd).omit(
    2184         'score', 'mandatory', 'automatic', 'carry_over', 'credits', 'passmark')
     2188    form_fields = grok.AutoFields(ICourseTicketAdd)
    21852189
    21862190    def update(self):
Note: See TracChangeset for help on using the changeset viewer.