Changeset 7168


Ignore:
Timestamp:
22 Nov 2011, 14:11:25 (13 years ago)
Author:
Henrik Bettermann
Message:

Reorganize permissions a bit.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.py

    r7163 r7168  
    4444    grok.name('waeup.local.DepartmentOfficer')
    4545    grok.title(u'Department Officer')
    46     grok.permissions('waeup.manageUniversity','waeup.View', 'waeup.Public')
     46    grok.permissions('waeup.manageUniversity')
     47
    4748
    4849class ClearanceOfficer(grok.Role):
     50    """The clearance officer role is meant for the
     51    assignment of dynamic roles only.
     52    """
    4953    grok.name('waeup.local.ClearanceOfficer')
    5054    grok.title(u'Clearance Officer')
    51     grok.permissions('waeup.View', 'waeup.Public')
    5255
    5356class CourseAdviser(grok.Role):
     57    """The course adviser role is meant for the
     58    assignment of dynamic roles only.
     59    """
    5460    grok.name('waeup.local.CourseAdviser')
    5561    grok.title(u'Course Adviser')
    56     grok.permissions('waeup.View', 'waeup.Public')
    5762
    5863class Owner(grok.Role):
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.txt

    r7163 r7168  
    3939    >>> from waeup.sirp.permissions import getWAeUPRoles
    4040    >>> len(list(getWAeUPRoles()))
    41     8
     41    9
    4242
    4343    >>> len(list(getWAeUPRoles(also_local=True)))
    44     14
     44    15
    4545
    4646
     
    5353    >>> from waeup.sirp.permissions import getWAeUPRoleNames
    5454    >>> list(getWAeUPRoleNames())
    55     [u'waeup.AccommodationOfficer', u'waeup.ApplicationsOfficer',
     55    [u'waeup.AccommodationOfficer', u'waeup.Applicant',
     56     u'waeup.ApplicationsOfficer',
    5657     u'waeup.PortalManager', u'waeup.PortalUser', u'waeup.Student',
    5758     u'waeup.StudentsClearanceOfficer', u'waeup.StudentsManager',
  • main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py

    r7154 r7168  
    5454    grok.name('waeup.StudentsOfficer')
    5555    grok.title(u'Students Officer (view only)')
    56     grok.permissions('waeup.View', 'waeup.Public',
    57                      'waeup.viewStudent',)
     56    grok.permissions('waeup.viewStudent',)
    5857
    5958class StudentsManager(grok.Role):
    6059    grok.name('waeup.StudentsManager')
    6160    grok.title(u'Students Manager')
    62     grok.permissions('waeup.View', 'waeup.Public',
    63                      'waeup.viewStudent', 'waeup.manageStudent',
     61    grok.permissions('waeup.viewStudent', 'waeup.manageStudent',
    6462                     'waeup.payStudent', 'waeup.uploadStudentFile')
    6563
     
    6765    grok.name('waeup.StudentsClearanceOfficer')
    6866    grok.title(u'Clearance Officer (all students)')
    69     grok.permissions('waeup.View', 'waeup.Public', 'waeup.clearStudent')
     67    grok.permissions('waeup.clearStudent')
Note: See TracChangeset for help on using the changeset viewer.