Changeset 6783 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 17 Sep 2011, 16:12:37 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r6782 r6783 560 560 grok.require('waeup.viewStudent') 561 561 form_fields = grok.AutoFields(IStudentStudyLevel) 562 #grok.template('studylevelpage')562 grok.template('studylevelpage') 563 563 title = 'Study Level' 564 564 pnav = 4 -
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r6781 r6783 213 213 214 214 """ 215 code = Attribute('Course code') 216 title = Attribute('Course title') 217 course_level = Attribute('level of the original course referrer') 215 code = Attribute('code of the original course') 216 title = Attribute('title of the original course') 217 credits = Attribute('credits of the original course') 218 passmark = Attribute('passmark of the original course') 219 semester = Attribute('semester of the original course') 220 faculty = Attribute('faculty of the original course') 221 department = Attribute('department of the original course') 218 222 core_or_elective = Attribute('core_or_elective of the original course referrer') 219 220 credits = schema.Int( 221 title = u'Credits', 222 default = 0, 223 required = False, 224 readonly = False, 225 ) 223 level = Attribute('level of the original course referrer') 226 224 227 225 score = schema.Int( -
main/waeup.sirp/trunk/src/waeup/sirp/students/studycourse.py
r6782 r6783 52 52 val.getCourseCode(), 53 53 val.course.title, 54 val.course.credits, 55 val.course.passmark, 56 val.course.semester, 57 val.course.__parent__.__parent__.__parent__.title, 58 val.course.__parent__.__parent__.title, 54 59 val.level, 55 60 val.core_or_elective) -
main/waeup.sirp/trunk/src/waeup/sirp/students/studylevel.py
r6782 r6783 60 60 student to attend the course. Lecturers will enter scores and more at 61 61 the end of the term. 62 63 A course ticket contains a copy of the original course and 64 course referrer data. If the courses and/or their referrers are removed, the 65 corresponding tickets remain unchanged. So we do not need any event 66 triggered actions on course tickets. 62 67 """ 63 68 grok.implements(ICourseTicket, IStudentNavigation) 64 69 grok.provides(ICourseTicket) 65 70 66 def __init__(self, code, title, course_level, core_or_elective): 71 def __init__(self, code, title, credits, 72 passmark, semester, faculty, department, level, core_or_elective): 73 67 74 super(CourseTicket, self).__init__() 68 75 self.title = title 69 76 self.code = code 70 self.course_level = course_level 77 self.faculty = faculty 78 self.department = department 79 self.level = level 80 self.credits = credits 81 self.passmark = passmark 82 self.semester = semester 71 83 self.core_or_elective = core_or_elective 72 84 return -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_student.py
r6781 r6783 37 37 self.studycourse = StudentStudyCourse() 38 38 self.studylevel = StudentStudyLevel() 39 self.courseticket = CourseTicket('CERT', 'Title', 100, True) 39 self.courseticket = CourseTicket('CERT', 'Title', 100, 10, 40, 1, 40 'Faculty', 'Department', True) 40 41 self.payments = StudentPayments() 41 42 self.accommodation = StudentAccommodation()
Note: See TracChangeset for help on using the changeset viewer.