Ignore:
Timestamp:
30 Nov 2011, 23:13:26 (13 years ago)
Author:
Henrik Bettermann
Message:

Rebuild applicants package (1st part). Applicants now have an applicant_id and a password and can use the regular login page to enter the portal.

Add user_type attribute to SIRPPrincipal objects.

Add some permissions in students package.

Some tests are still missing and will be re-added soon.

File:
1 edited

Legend:

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

    r7201 r7240  
    2929    grok.name('waeup.viewStudent')
    3030
    31 class ViewStudents(grok.Permission):
    32     grok.name('waeup.viewStudents')
     31class ViewStudentsTab(grok.Permission):
     32    grok.name('waeup.viewStudentsTab')
     33
     34class ViewMyStudentDataTab(grok.Permission):
     35    grok.name('waeup.viewMyStudentDataTab')
     36
     37class ViewStudentsContainer(grok.Permission):
     38    grok.name('waeup.viewStudentsContainer')
    3339
    3440class PayStudent(grok.Permission):
     
    5864class StudentRole(grok.Role):
    5965    grok.name('waeup.Student')
    60     grok.permissions('waeup.viewAcademics')
     66    grok.permissions('waeup.viewAcademics', 'waeup.viewMyStudentDataTab')
    6167
    6268class StudentsOfficer(grok.Role):
    6369    grok.name('waeup.StudentsOfficer')
    6470    grok.title(u'Students Officer (view only)')
    65     grok.permissions('waeup.viewStudent','waeup.viewStudents')
     71    grok.permissions('waeup.viewStudent','waeup.viewStudents',
     72          'waeup.viewStudentsTab', 'waeup.viewStudentsContainer')
    6673
    6774class StudentsManager(grok.Role):
Note: See TracChangeset for help on using the changeset viewer.