Changeset 14642
- Timestamp:
- 22 Mar 2017, 10:24:10 (8 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r14638 r14642 4 4 1.6.dev0 (unreleased) 5 5 ======================= 6 7 * Add `course_category` attribute to course tickets. In the base package, 8 this attribute is omitted from display and manage pages. 6 9 7 10 * Add `course_category` attribute to certificate courses. -
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r14574 r14642 658 658 'student_id','reg_number','matric_number', 659 659 'mandatory', 'score', 'carry_over', 'automatic', 660 'outstanding', ' level_session',660 'outstanding', 'course_category', 'level_session', 661 661 'title', 'credits', 'passmark', 'semester' 662 662 ] + self.additional_fields -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r14584 r14642 132 132 value_dict['outstanding'] = translate(str(value.outstanding), 'zope', 133 133 target_language=lang) 134 value_dict['course_category'] = translate(str(value.course_category), 135 'zope', target_language=lang) 134 136 value_dict['automatic'] = translate(str(value.automatic), 'zope', 135 137 target_language=lang) … … 1658 1660 grok.name('index') 1659 1661 grok.require('waeup.viewStudent') 1660 form_fields = grok.AutoFields(ICourseTicket) 1662 form_fields = grok.AutoFields(ICourseTicket).omit('course_category') 1661 1663 grok.template('courseticketpage') 1662 1664 pnav = 4 … … 1674 1676 grok.name('manage') 1675 1677 grok.require('waeup.manageStudent') 1676 form_fields = grok.AutoFields(ICourseTicket) 1678 form_fields = grok.AutoFields(ICourseTicket).omit('course_category') 1677 1679 form_fields['title'].for_display = True 1678 1680 form_fields['fcode'].for_display = True -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r14584 r14642 34 34 IPaymentsContainer, IOnlinePayment) 35 35 from waeup.kofa.university.vocabularies import ( 36 CourseSource, StudyModeSource, CertificateSource, SemesterSource, 36 CourseSource, StudyModeSource, CertificateSource, 37 SemesterSource, CourseCategorySource 37 38 ) 38 39 … … 697 698 ) 698 699 700 course_category = schema.Choice( 701 title = _(u'Course Category'), 702 source = CourseCategorySource(), 703 required = False, 704 ) 705 699 706 score = schema.Int( 700 707 title = _(u'Score'), -
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r14574 r14642 264 264 ticket.mandatory = val.mandatory 265 265 ticket.carry_over = False 266 ticket.course_category = val.course_category 266 267 self.addCourseTicket(ticket, val.course) 267 268 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r14584 r14642 2519 2519 self.assertTrue( 2520 2520 self.student['studycourse']['200']['COURSE1'].carry_over is True) 2521 self.assertTrue( 2522 self.student['studycourse']['200']['COURSE1'].course_category is None) 2521 2523 # Students can open the pdf course registration slip 2522 2524 self.browser.open(self.student_path + '/studycourse/200') -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r14596 r14642 613 613 self.assertEqual( 614 614 result, 615 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'615 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 616 616 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 617 617 'display_fullname\r\n' 618 '0,0,,,,,,, 0,0,,,,,,,\r\n'618 '0,0,,,,,,,,0,0,,,,,,,\r\n' 619 619 ) 620 620 return … … 632 632 self.assertEqual( 633 633 result, 634 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'634 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 635 635 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 636 636 'display_fullname\r\n' 637 '1,1,CRS1, 100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,'637 '1,1,CRS1,,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,' 638 638 'Anna M. Tester\r\n' 639 639 ) … … 649 649 self.assertEqual( 650 650 result, 651 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'651 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 652 652 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 653 653 'display_fullname\r\n' 654 '1,1,CRS1, 100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,'654 '1,1,CRS1,,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,' 655 655 'Anna M. Tester\r\n' 656 656 ) … … 665 665 self.assertEqual( 666 666 result, 667 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'667 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 668 668 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 669 669 'display_fullname\r\n' 670 '1,1,CRS1, 100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,'670 '1,1,CRS1,,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,' 671 671 'Anna M. Tester\r\n' 672 672 ) … … 685 685 self.assertEqual( 686 686 result, 687 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'687 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 688 688 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 689 689 'display_fullname\r\n' 690 '1,1,CRS1, 100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,'690 '1,1,CRS1,,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,' 691 691 'Anna M. Tester\r\n' 692 692 ) … … 699 699 self.assertEqual( 700 700 result, 701 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'701 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 702 702 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 703 703 'display_fullname\r\n' 704 '1,1,CRS1, 100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,'704 '1,1,CRS1,,100,DEP1,FAC1,100,2012,0,0,100,,2,Course 1,A111111,CERT1,' 705 705 'Anna M. Tester\r\n' 706 706 ) … … 710 710 self.assertEqual( 711 711 result, 712 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'712 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 713 713 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 714 714 'display_fullname\r\n' … … 723 723 self.assertEqual( 724 724 result, 725 'automatic,carry_over,code,c redits,dcode,fcode,level,level_session,'725 'automatic,carry_over,code,course_category,credits,dcode,fcode,level,level_session,' 726 726 'mandatory,outstanding,passmark,score,semester,title,student_id,certcode,' 727 727 'display_fullname\r\n' 728 '1,1,CRS1, 100,DEP1,FAC1,110,2012,0,0,100,,2,Course 1,A111111,CERT1,'728 '1,1,CRS1,,100,DEP1,FAC1,110,2012,0,0,100,,2,Course 1,A111111,CERT1,' 729 729 'Anna M. Tester\r\n' 730 730 )
Note: See TracChangeset for help on using the changeset viewer.