- Timestamp:
- 9 Sep 2018, 10:36:38 (6 years ago)
- Location:
- main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py
r15128 r15134 1151 1151 grok.context(IStudent) 1152 1152 grok.name('release_transcript') 1153 grok.require('waeup. viewTranscript')1153 grok.require('waeup.processTranscript') 1154 1154 grok.template('transcriptrelease') 1155 1155 form_fields = grok.AutoFields(IStudentTranscript) … … 1199 1199 1200 1200 class StudentTranscriptRequestManageFormPage(KofaEditFormPage): 1201 """ Page to manage transcript data 1201 """ Page to manage transcript data. There is no link button 1202 for this page. It's an emergency page. 1202 1203 """ 1203 1204 grok.context(IStudent) 1204 1205 grok.name('manage_transcript_request') 1205 grok.require('waeup. manageStudent')1206 grok.require('waeup.processTranscript') 1206 1207 form_fields = grok.AutoFields(IStudentTranscript) 1207 1208 label = _('Manage transcript request') -
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/permissions.py
r13762 r15134 92 92 """ 93 93 grok.name('waeup.loginAsStudent') 94 95 class ViewTranscript(grok.Permission): 96 """The ViewTranscript role is needed to view transcript pages and slips. 97 """ 98 grok.name('waeup.viewTranscript') 99 100 class ProcessTranscript(grok.Permission): 101 grok.name('waeup.processTranscript') 102 """The ProcessTranscript role is needed to validate and relase transcripts. 103 """ 104 105 class SignTranscript(grok.Permission): 106 grok.name('waeup.signTranscript') 107 """The ViewTranscript role is needed to sign transcripts. 108 """ 94 109 95 110 # Local role … … 142 157 143 158 class TranscriptOfficer(grok.Role): 159 """The Transcript Officer is allowed to view, to validate and to 160 release student transcripts. 161 """ 144 162 grok.name('waeup.TranscriptOfficer') 145 163 grok.title(u'Transcript Officer') 146 164 grok.permissions('waeup.viewAcademics', 147 165 'waeup.viewTranscript', 166 'waeup.processTranscript', 167 'waeup.viewStudent', 168 'waeup.viewStudentsContainer', 169 ) 170 171 class TranscriptSignee(grok.Role): 172 """The Transcript Signee is allowed to view and to sign student 173 transcripts. 174 """ 175 grok.name('waeup.TranscriptSignee') 176 grok.title(u'Transcript Signee') 177 grok.permissions('waeup.viewAcademics', 178 'waeup.viewTranscript', 179 'waeup.signTranscript', 148 180 'waeup.viewStudent', 149 181 'waeup.viewStudentsContainer', -
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/viewlets.py
r15128 r15134 780 780 grok.context(IStudent) 781 781 grok.view(StudentBaseDisplayFormPage) 782 grok.require('waeup. viewTranscript')782 grok.require('waeup.processTranscript') 783 783 text = _('Release transcript') 784 784 target = 'release_transcript'
Note: See TracChangeset for help on using the changeset viewer.