Changeset 12843 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 1 Apr 2015, 10:51:35 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/permissions.py
r10465 r12843 29 29 grok.name('waeup.viewStudent') 30 30 31 class ViewStudentsTab(grok.Permission):32 grok.name('waeup.viewStudentsTab')33 34 31 class ViewMyStudentDataTab(grok.Permission): 35 32 grok.name('waeup.viewMyStudentDataTab') … … 59 56 grok.name('waeup.editStudyLevel') 60 57 61 class TriggerTransition(grok.Permission):62 grok.name('waeup.triggerTransition')63 64 58 class LoginAsStudent(grok.Permission): 65 59 grok.name('waeup.loginAsStudent') … … 69 63 grok.name('waeup.local.StudentRecordOwner') 70 64 grok.title(u'Student Record Owner') 71 grok.permissions('waeup.handleStudent', 'waeup.uploadStudentFile', 72 'waeup.viewStudent', 'waeup.payStudent', 73 'waeup.handleAccommodation', 'waeup.editStudyLevel') 65 grok.permissions('waeup.handleStudent', 66 'waeup.uploadStudentFile', 67 'waeup.viewStudent', 68 'waeup.payStudent', 69 'waeup.handleAccommodation', 70 'waeup.editStudyLevel') 74 71 75 72 # Site Roles … … 77 74 grok.name('waeup.Student') 78 75 grok.title(u'Student (do not assign)') 79 grok.permissions('waeup.viewAcademics', 'waeup.viewMyStudentDataTab', 76 grok.permissions('waeup.viewAcademics', 77 'waeup.viewMyStudentDataTab', 80 78 'waeup.Authenticated') 81 79 … … 83 81 grok.name('waeup.StudentsOfficer') 84 82 grok.title(u'Students Officer (view only)') 85 grok.permissions('waeup.viewStudent', 'waeup.viewStudents',86 'waeup.viewStudentsTab','waeup.viewStudentsContainer')83 grok.permissions('waeup.viewStudent', 84 'waeup.viewStudentsContainer') 87 85 88 86 class StudentsManager(grok.Role): 89 87 grok.name('waeup.StudentsManager') 90 88 grok.title(u'Students Manager') 91 grok.permissions('waeup.viewStudent', 'waeup.viewStudents', 92 'waeup.manageStudent', 'waeup.viewStudentsContainer', 93 'waeup.payStudent', 'waeup.uploadStudentFile', 94 'waeup.viewStudentsTab', 'waeup.handleAccommodation') 89 grok.permissions('waeup.viewStudent', 90 'waeup.manageStudent', 91 'waeup.viewStudentsContainer', 92 'waeup.payStudent', 93 'waeup.uploadStudentFile', 94 'waeup.handleAccommodation') 95 95 96 96 class TranscriptOfficer(grok.Role): … … 100 100 'waeup.viewTranscript', 101 101 'waeup.viewStudent', 102 'waeup.viewStudents',103 'waeup.viewStudentsTab',104 102 'waeup.viewStudentsContainer', 105 103 ) … … 108 106 grok.name('waeup.StudentsClearanceOfficer') 109 107 grok.title(u'Clearance Officer (all students)') 110 grok.permissions('waeup.clearStudent','waeup.viewStudent') 108 grok.permissions('waeup.clearStudent', 109 'waeup.viewStudent') 111 110 112 111 class StudentsCourseAdviser(grok.Role): 113 112 grok.name('waeup.StudentsCourseAdviser') 114 113 grok.title(u'Course Adviser (all students)') 115 grok.permissions('waeup.validateStudent','waeup.viewStudent', 114 grok.permissions('waeup.validateStudent', 115 'waeup.viewStudent', 116 116 'waeup.editStudyLevel') 117 117 -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r12421 r12843 717 717 grok.context(IKofaObject) 718 718 grok.order(4) 719 grok.require('waeup.viewStudents Tab')719 grok.require('waeup.viewStudentsContainer') 720 720 grok.name('studentstab') 721 721
Note: See TracChangeset for help on using the changeset viewer.