Changeset 7538 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 30 Jan 2012, 10:17:13 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7520 r7538 52 52 IStudentsContainer, IStudent, IStudentClearance, 53 53 IStudentPersonal, IStudentBase, IStudentStudyCourse, 54 IStudentAccommodation, IStudent ClearanceEdit, IStudentStudyLevel,54 IStudentAccommodation, IStudentStudyLevel, 55 55 ICourseTicket, ICourseTicketAdd, IStudentPaymentsContainer, 56 56 IStudentOnlinePayment, IBedTicket, IStudentsUtils, IStudentChangePassword … … 642 642 return '%s: Personal Data' % self.context.display_fullname 643 643 644 class StudentPersonal ManageActionButton(ManageActionButton):644 class StudentPersonalEditActionButton(ManageActionButton): 645 645 grok.order(1) 646 646 grok.context(IStudent) 647 647 grok.view(StudentPersonalDisplayFormPage) 648 grok.require('waeup. manageStudent')649 text = ' Manage'648 grok.require('waeup.viewStudent') 649 text = 'Edit' 650 650 target = 'edit_personal' 651 651 … … 1855 1855 grok.require('waeup.handleStudent') 1856 1856 form_fields = grok.AutoFields( 1857 IStudentClearance Edit).omit('clearance_locked')1857 IStudentClearance).omit('clearance_locked') 1858 1858 label = 'Edit clearance data' 1859 1859 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelpage.pt
r7464 r7538 61 61 62 62 <div tal:condition="python: not len(context.keys())"> 63 There no levels registered yet.63 There no tickets added yet. 64 64 </div> -
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r7532 r7538 441 441 'p_item'].order 442 442 443 # Interfaces for students only444 445 class IStudentClearanceEdit(IStudentClearance):446 """Interface needed for restricted editing of student clearance data.447 448 """449 450 class IStudentPersonalEdit(IStudentPersonal):451 """Interface needed for restricted editing of student personal data.452 453 """454 455 443 class IStudentChangePassword(ISIRPObject): 456 444 """Interface needed for change pasword page. -
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r7527 r7538 31 31 from waeup.sirp.image import SIRPImageFile 32 32 from waeup.sirp.imagestorage import DefaultFileStoreHandler 33 from waeup.sirp.students.interfaces import ( 34 IStudent, IStudentNavigation, IStudentClearanceEdit, 35 IStudentPersonalEdit) 33 from waeup.sirp.students.interfaces import IStudent, IStudentNavigation 36 34 from waeup.sirp.students.studycourse import StudentStudyCourse 37 35 from waeup.sirp.students.payments import StudentPaymentsContainer … … 44 42 owned by students. 45 43 """ 46 grok.implements(IStudent, IStudentNavigation, 47 IStudentPersonalEdit, IStudentClearanceEdit) 44 grok.implements(IStudent, IStudentNavigation) 48 45 grok.provides(IStudent) 49 46
Note: See TracChangeset for help on using the changeset viewer.