Changeset 9316
- Timestamp:
- 8 Oct 2012, 13:19:14 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r9315 r9316 545 545 546 546 location_fields = [] 547 additional_fields = ['level', 'code' , 'credits']547 additional_fields = ['level', 'code'] 548 548 additional_headers = ['level', 'code'] 549 549 … … 579 579 obj.dcode = entries[0].__parent__.__parent__.code 580 580 obj.title = entries[0].title 581 obj.credits = entries[0].credits 582 obj.passmark = entries[0].passmark 581 if getattr(obj, 'credits', None) is None: 582 obj.credits = entries[0].credits 583 if getattr(obj, 'passmark', None) is None: 584 obj.passmark = entries[0].passmark 583 585 obj.semester = entries[0].semester 584 586 parent[row['code']] = obj -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9280 r9316 1120 1120 label = _('Add course ticket') 1121 1121 form_fields = grok.AutoFields(ICourseTicketAdd).omit( 1122 'score', 'automatic', 'carry_over' )1122 'score', 'automatic', 'carry_over', 'credits', 'passmark') 1123 1123 pnav = 4 1124 1124 … … 1172 1172 grok.name('manage') 1173 1173 grok.require('waeup.manageStudent') 1174 form_fields = grok.AutoFields(ICourseTicket) 1174 form_fields = grok.AutoFields(ICourseTicket).omit('credits', 'passmark') 1175 1175 grok.template('courseticketmanagepage') 1176 1176 pnav = 4 … … 2107 2107 grok.require('waeup.handleStudent') 2108 2108 form_fields = grok.AutoFields(ICourseTicketAdd).omit( 2109 'score', 'mandatory', 'automatic', 'carry_over' )2109 'score', 'mandatory', 'automatic', 'carry_over', 'credits', 'passmark') 2110 2110 2111 2111 def update(self): -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r9278 r9316 210 210 #: Fieldnames considered by this exporter 211 211 fields = tuple(sorted(iface_names(ICourseTicket) + 212 ['level', 'code', 'title', 'credits',213 ' passmark', 'semester', 'fcode', 'dcode'])) + ('student_id', 'certcode')212 ['level', 'code', 'title', 213 'semester', 'fcode', 'dcode'])) + ('student_id', 'certcode') 214 214 215 215 #: The title under which this exporter will be displayed -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r9296 r9316 512 512 ) 513 513 514 credits = schema.Int( 515 title = _(u'Credits'), 516 required = False, 517 ) 518 519 passmark = schema.Int( 520 title = _(u'Passmark'), 521 required = False, 522 ) 523 514 524 def getLevel(): 515 525 """Returns the id of the level the ticket has been added to. -
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r9315 r9316 124 124 self.fcode = None 125 125 self.dcode = None 126 self.credits = 0127 self.passmark = 0128 126 self.semester = None 129 127 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9315 r9316 293 293 'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,' 294 294 'passmark,score,semester,title,student_id,certcode\r\n' 295 '0,0,, 0,,,,0,0,0,,,,\r\n'295 '0,0,,,,,,0,,0,,,,\r\n' 296 296 ) 297 297 return
Note: See TracChangeset for help on using the changeset viewer.