Changeset 10278 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 5 Jun 2013, 14:23:04 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/permissions.py
r10248 r10278 71 71 grok.name('waeup.exportData') 72 72 73 class ViewTranscript(grok.Permission): 74 grok.name('waeup.viewTranscript') 75 73 76 class ManagePortalConfiguration(grok.Permission): 74 77 grok.name('waeup.managePortalConfiguration') … … 253 256 grok.title(u'Bursary Officer') 254 257 grok.permissions('waeup.showStudents', 'waeup.viewAcademics') 258 259 class TranscriptOfficer(grok.Role): 260 grok.name('waeup.TranscriptOfficer') 261 grok.title(u'Transcript Officer') 262 grok.permissions('waeup.showStudents', 263 'waeup.viewAcademics', 264 'waeup.viewTranscript', 265 'waeup.viewStudent') 255 266 256 267 class UsersManager(grok.Role): … … 275 286 'waeup.importData', 276 287 'waeup.exportData', 288 'waeup.viewTranscript', 277 289 'waeup.managePortalConfiguration', 'waeup.viewApplication', 278 290 'waeup.manageApplication', 'waeup.handleApplication', … … 305 317 #'waeup.importData', 306 318 'waeup.exportData', 319 'waeup.viewTranscript', 307 320 'waeup.managePortalConfiguration', 'waeup.viewApplication', 308 321 'waeup.manageApplication', 'waeup.handleApplication', -
main/waeup.kofa/trunk/src/waeup/kofa/permissions.txt
r10246 r10278 39 39 >>> from waeup.kofa.permissions import get_waeup_roles 40 40 >>> len(list(get_waeup_roles())) 41 2 241 23 42 42 43 43 >>> len(list(get_waeup_roles(also_local=True))) 44 3944 40 45 45 46 46 … … 72 72 u'waeup.StudentsManager', 73 73 u'waeup.StudentsOfficer', 74 u'waeup.TranscriptOfficer', 74 75 u'waeup.UsersManager', 75 76 u'waeup.WorkflowManager', -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10276 r10278 1065 1065 grok.context(IStudentStudyCourseTranscript) 1066 1066 grok.name('transcript') 1067 grok.require('waeup.view Student')1067 grok.require('waeup.viewTranscript') 1068 1068 grok.template('transcript') 1069 1069 pnav = 4 … … 1094 1094 grok.context(IStudentStudyCourse) 1095 1095 grok.name('transcript.pdf') 1096 grok.require('waeup.view Student')1096 grok.require('waeup.viewTranscript') 1097 1097 form_fields = grok.AutoFields(IStudentStudyCourseTranscript) 1098 1098 prefix = 'form' -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r10277 r10278 2249 2249 self.assertEqual(self.student.state, 'courses registered') 2250 2250 # Students can view the transcript 2251 self.browser.open(self.studycourse_path)2252 self.browser.getLink("Transcript").click()2253 self.browser.getLink("Academic Transcript").click()2254 self.assertEqual(self.browser.headers['Status'], '200 Ok')2255 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')2251 #self.browser.open(self.studycourse_path) 2252 #self.browser.getLink("Transcript").click() 2253 #self.browser.getLink("Academic Transcript").click() 2254 #self.assertEqual(self.browser.headers['Status'], '200 Ok') 2255 #self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 2256 2256 return 2257 2257 -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r10266 r10278 348 348 grok.context(IStudentStudyCourse) 349 349 grok.view(StudyCourseDisplayFormPage) 350 grok.require('waeup.view Student')350 grok.require('waeup.viewTranscript') 351 351 text = _('Transcript') 352 352 target = 'transcript' … … 363 363 grok.context(IStudentStudyCourse) 364 364 grok.view(StudyCourseTranscriptPage) 365 grok.require('waeup.view Student')365 grok.require('waeup.viewTranscript') 366 366 text = _('Academic Transcript') 367 367 target = 'transcript.pdf'
Note: See TracChangeset for help on using the changeset viewer.