Changeset 7186 for main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
- Timestamp:
- 24 Nov 2011, 11:31:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7184 r7186 737 737 self.request) 738 738 students_utils = getUtility(IStudentsUtils) 739 return students_utils.render _pdf(739 return students_utils.renderPDF( 740 740 self,'Course Registration', 'course_registration.pdf', 741 741 self.context.getStudent, studentview) … … 1022 1022 return 1023 1023 students_utils = getUtility(IStudentsUtils) 1024 pay_details = students_utils.get _payment_details(1024 pay_details = students_utils.getPaymentDetails( 1025 1025 p_category,student) 1026 1026 if pay_details['error']: … … 1177 1177 self.request) 1178 1178 students_utils = getUtility(IStudentsUtils) 1179 return students_utils.render _pdf(self,'Payment', 'payment_receipt.pdf',1179 return students_utils.renderPDF(self,'Payment', 'payment_receipt.pdf', 1180 1180 self.context.getStudent, studentview) 1181 1181 … … 1289 1289 student = self.context.getStudent() 1290 1290 students_utils = getUtility(IStudentsUtils) 1291 acc_details = students_utils.get _accommodation_details(student)1291 acc_details = students_utils.getAccommodationDetails(student) 1292 1292 if not student.state in acc_details['allowed_states']: 1293 1293 self.flash("You are in the wrong registration state.") … … 1327 1327 if available_beds: 1328 1328 students_utils = getUtility(IStudentsUtils) 1329 bed = students_utils.select _bed(available_beds)1329 bed = students_utils.selectBed(available_beds) 1330 1330 bed.bookBed(student.student_id) 1331 1331 else: … … 1409 1409 self.request) 1410 1410 students_utils = getUtility(IStudentsUtils) 1411 return students_utils.render _pdf(1411 return students_utils.renderPDF( 1412 1412 self,'Bed Allocation', 'bed_allocation.pdf', 1413 1413 self.context.getStudent, studentview) … … 1434 1434 student = self.context.getStudent() 1435 1435 students_utils = getUtility(IStudentsUtils) 1436 acc_details = students_utils.get _accommodation_details(student)1436 acc_details = students_utils.getAccommodationDetails(student) 1437 1437 if self.context.bed != None and \ 1438 1438 'reserved' in self.context.bed.bed_type: … … 1462 1462 if available_beds: 1463 1463 students_utils = getUtility(IStudentsUtils) 1464 new_bed = students_utils.select _bed(available_beds)1464 new_bed = students_utils.selectBed(available_beds) 1465 1465 new_bed.bookBed(student.student_id) 1466 1466 else: … … 1719 1719 1720 1720 @grok.action('Save and request clearance') 1721 def request clearance(self, **data):1721 def requestClearance(self, **data): 1722 1722 self.applyData(self.context, **data) 1723 1723 self.context._p_changed = True … … 1964 1964 1965 1965 @grok.action('Register course list') 1966 def register_courses(self, **data):1966 def RegisterCourses(self, **data): 1967 1967 state = IWorkflowState(self.context.getStudent()).getState() 1968 1968 IWorkflowInfo(self.context.getStudent()).fireTransition('register_courses')
Note: See TracChangeset for help on using the changeset viewer.