Changeset 8903 for main/waeup.kofa/trunk/src
- Timestamp:
- 3 Jul 2012, 21:07:34 (12 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
r8885 r8903 557 557 mapping = {'a':self.context.display_fullname}) 558 558 559 class StudentPersonal EditFormPage(KofaEditFormPage):560 """ Page to editpersonal data559 class StudentPersonalManageFormPage(KofaEditFormPage): 560 """ Page to manage personal data 561 561 """ 562 562 grok.context(IStudent) 563 grok.name(' edit_personal')564 grok.require('waeup. handleStudent')563 grok.name('manage_personal') 564 grok.require('waeup.manageStudent') 565 565 form_fields = grok.AutoFields(IStudentPersonal) 566 label = _(' Editpersonal data')566 label = _('Manage personal data') 567 567 pnav = 4 568 568 … … 571 571 msave(self, **data) 572 572 return 573 574 class StudentPersonalEditFormPage(StudentPersonalManageFormPage): 575 """ Page to edit personal data 576 """ 577 grok.name('edit_personal') 578 grok.require('waeup.handleStudent') 579 label = _('Edit personal data') 580 pnav = 4 573 581 574 582 class StudyCourseDisplayFormPage(KofaDisplayFormPage): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8856 r8903 118 118 self.manage_clearance_path = self.student_path + '/manage_clearance' 119 119 self.edit_personal_path = self.student_path + '/edit_personal' 120 self.manage_personal_path = self.student_path + '/manage_personal' 120 121 self.studycourse_path = self.student_path + '/studycourse' 121 122 self.payments_path = self.student_path + '/payments' … … 454 455 self.assertEqual(self.browser.headers['Status'], '200 Ok') 455 456 self.assertEqual(self.browser.url, self.personal_path) 457 self.browser.getLink("Manage").click() 458 self.assertEqual(self.browser.headers['Status'], '200 Ok') 459 self.assertEqual(self.browser.url, self.manage_personal_path) 460 self.browser.open(self.personal_path) 456 461 self.browser.getLink("Edit").click() 457 462 self.assertEqual(self.browser.headers['Status'], '200 Ok') -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r8736 r8903 231 231 target = 'view_personal' 232 232 233 class StudentPersonalManageActionButton(ManageActionButton): 234 grok.order(1) 235 grok.context(IStudent) 236 grok.view(StudentPersonalDisplayFormPage) 237 grok.require('waeup.manageStudent') 238 text = _('Manage') 239 target = 'manage_personal' 240 233 241 class StudentPersonalEditActionButton(ManageActionButton): 234 grok.order( 1)242 grok.order(2) 235 243 grok.context(IStudent) 236 244 grok.view(StudentPersonalDisplayFormPage) 237 grok.require('waeup. viewStudent')245 grok.require('waeup.handleStudent') 238 246 text = _('Edit') 239 247 target = 'edit_personal'
Note: See TracChangeset for help on using the changeset viewer.