Ignore:
Timestamp:
1 Apr 2015, 10:51:35 (10 years ago)
Author:
Henrik Bettermann
Message:

Documentation work in progress.

Remove redundant waeup.viewStudentsTab permission.

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  
    2929    grok.name('waeup.viewStudent')
    3030
    31 class ViewStudentsTab(grok.Permission):
    32     grok.name('waeup.viewStudentsTab')
    33 
    3431class ViewMyStudentDataTab(grok.Permission):
    3532    grok.name('waeup.viewMyStudentDataTab')
     
    5956    grok.name('waeup.editStudyLevel')
    6057
    61 class TriggerTransition(grok.Permission):
    62     grok.name('waeup.triggerTransition')
    63 
    6458class LoginAsStudent(grok.Permission):
    6559    grok.name('waeup.loginAsStudent')
     
    6963    grok.name('waeup.local.StudentRecordOwner')
    7064    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')
    7471
    7572# Site Roles
     
    7774    grok.name('waeup.Student')
    7875    grok.title(u'Student (do not assign)')
    79     grok.permissions('waeup.viewAcademics', 'waeup.viewMyStudentDataTab',
     76    grok.permissions('waeup.viewAcademics',
     77                     'waeup.viewMyStudentDataTab',
    8078                     'waeup.Authenticated')
    8179
     
    8381    grok.name('waeup.StudentsOfficer')
    8482    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')
    8785
    8886class StudentsManager(grok.Role):
    8987    grok.name('waeup.StudentsManager')
    9088    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')
    9595
    9696class TranscriptOfficer(grok.Role):
     
    100100                     'waeup.viewTranscript',
    101101                     'waeup.viewStudent',
    102                      'waeup.viewStudents',
    103                      'waeup.viewStudentsTab',
    104102                     'waeup.viewStudentsContainer',
    105103                     )
     
    108106    grok.name('waeup.StudentsClearanceOfficer')
    109107    grok.title(u'Clearance Officer (all students)')
    110     grok.permissions('waeup.clearStudent','waeup.viewStudent')
     108    grok.permissions('waeup.clearStudent',
     109                     'waeup.viewStudent')
    111110
    112111class StudentsCourseAdviser(grok.Role):
    113112    grok.name('waeup.StudentsCourseAdviser')
    114113    grok.title(u'Course Adviser (all students)')
    115     grok.permissions('waeup.validateStudent','waeup.viewStudent',
     114    grok.permissions('waeup.validateStudent',
     115                     'waeup.viewStudent',
    116116                     'waeup.editStudyLevel')
    117117
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r12421 r12843  
    717717    grok.context(IKofaObject)
    718718    grok.order(4)
    719     grok.require('waeup.viewStudentsTab')
     719    grok.require('waeup.viewStudentsContainer')
    720720    grok.name('studentstab')
    721721
Note: See TracChangeset for help on using the changeset viewer.