- Timestamp:
- 12 Apr 2012, 06:54:46 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8099 r8119 469 469 """ 470 470 grok.context(IStudent) 471 grok.name(' edit_clearance')471 grok.name('manage_clearance') 472 472 grok.require('waeup.manageStudent') 473 473 grok.template('clearanceeditpage') … … 566 566 mapping = {'a':self.context.display_fullname}) 567 567 568 class StudentPersonal ManageFormPage(KofaEditFormPage):568 class StudentPersonalEditFormPage(KofaEditFormPage): 569 569 """ Page to edit student clearance data 570 570 """ 571 571 grok.context(IStudent) 572 572 grok.name('edit_personal') 573 grok.require('waeup. viewStudent')573 grok.require('waeup.handleStudent') 574 574 form_fields = grok.AutoFields(IStudentPersonal) 575 label = _(' Managepersonal data')575 label = _('Edit personal data') 576 576 pnav = 4 577 577 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8118 r8119 112 112 self.personal_path = self.student_path + '/view_personal' 113 113 self.edit_clearance_path = self.student_path + '/cedit' 114 self.manage_clearance_path = self.student_path + '/ edit_clearance'114 self.manage_clearance_path = self.student_path + '/manage_clearance' 115 115 self.edit_personal_path = self.student_path + '/edit_personal' 116 116 self.studycourse_path = self.student_path + '/studycourse' … … 1179 1179 self.browser.getLink("View").click() 1180 1180 self.browser.getLink("Download clearance slip").click() 1181 print self.browser.contents1182 1181 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1183 1182 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1184 1183 # Students can request clearance 1184 self.browser.open(self.edit_clearance_path) 1185 1185 self.browser.getControl("Save and request clearance").click() 1186 1186 self.browser.getControl(name="ac_series").value = self.existing_clrseries -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r8109 r8119 41 41 StudyCourseDisplayFormPage, StudyLevelDisplayFormPage, 42 42 CourseTicketDisplayFormPage, OnlinePaymentDisplayFormPage, 43 AccommodationManageFormPage, BedTicketDisplayFormPage,) 43 AccommodationManageFormPage, BedTicketDisplayFormPage, 44 StudentClearanceEditFormPage, StudentPersonalEditFormPage) 44 45 from waeup.kofa.students.interfaces import ( 45 46 IStudentsContainer, IStudent, … … 172 173 grok.require('waeup.manageStudent') 173 174 text = _('Manage') 174 target = ' edit_clearance'175 target = 'manage_clearance' 175 176 176 177 class StudentClearActionButton(ManageActionButton): … … 212 213 text = _('Download clearance slip') 213 214 target = 'clearance.pdf' 215 216 class ClearanceViewActionButton(ManageActionButton): 217 grok.order(1) 218 grok.context(IStudent) 219 grok.view(StudentClearanceEditFormPage) 220 grok.require('waeup.viewStudent') 221 icon = 'actionicon_view.png' 222 text = _('View') 223 target = 'view_clearance' 224 225 class PersonalViewActionButton(ManageActionButton): 226 grok.order(1) 227 grok.context(IStudent) 228 grok.view(StudentPersonalEditFormPage) 229 grok.require('waeup.viewStudent') 230 icon = 'actionicon_view.png' 231 text = _('View') 232 target = 'view_personal' 214 233 215 234 class StudentPersonalEditActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.