Ignore:
Timestamp:
5 Jun 2013, 14:23:04 (12 years ago)
Author:
Henrik Bettermann
Message:

Add permission and role for transcript officers.

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

    r10276 r10278  
    10651065    grok.context(IStudentStudyCourseTranscript)
    10661066    grok.name('transcript')
    1067     grok.require('waeup.viewStudent')
     1067    grok.require('waeup.viewTranscript')
    10681068    grok.template('transcript')
    10691069    pnav = 4
     
    10941094    grok.context(IStudentStudyCourse)
    10951095    grok.name('transcript.pdf')
    1096     grok.require('waeup.viewStudent')
     1096    grok.require('waeup.viewTranscript')
    10971097    form_fields = grok.AutoFields(IStudentStudyCourseTranscript)
    10981098    prefix = 'form'
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r10277 r10278  
    22492249        self.assertEqual(self.student.state, 'courses registered')
    22502250        # 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')
    22562256        return
    22572257
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r10266 r10278  
    348348    grok.context(IStudentStudyCourse)
    349349    grok.view(StudyCourseDisplayFormPage)
    350     grok.require('waeup.viewStudent')
     350    grok.require('waeup.viewTranscript')
    351351    text = _('Transcript')
    352352    target = 'transcript'
     
    363363    grok.context(IStudentStudyCourse)
    364364    grok.view(StudyCourseTranscriptPage)
    365     grok.require('waeup.viewStudent')
     365    grok.require('waeup.viewTranscript')
    366366    text = _('Academic Transcript')
    367367    target = 'transcript.pdf'
Note: See TracChangeset for help on using the changeset viewer.