Ignore:
Timestamp:
13 Nov 2014, 13:21:59 (10 years ago)
Author:
Henrik Bettermann
Message:

Enucleation. Keep only the portal's framework. Remove university, students, applicants, hostels and accesscodes modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/permissions.py

    r11862 r11947  
    4444    grok.name('waeup.Authenticated')
    4545
    46 class ViewAcademicsPermission(grok.Permission):
    47     grok.name('waeup.viewAcademics')
    48 
    49 class ManageAcademicsPermission(grok.Permission):
    50     grok.name('waeup.manageAcademics')
     46class ViewProductsPermission(grok.Permission):
     47    grok.name('waeup.viewProducts')
     48
     49class ManageProductsPermission(grok.Permission):
     50    grok.name('waeup.manageProducts')
    5151
    5252class ManagePortal(grok.Permission):
     
    5656    grok.name('waeup.manageUsers')
    5757
    58 class ShowStudents(grok.Permission):
    59     grok.name('waeup.showStudents')
    60 
    61 class ClearAllStudents(grok.Permission):
    62     grok.name('waeup.clearAllStudents')
    63 
    64 class EditScores(grok.Permission):
    65     grok.name('waeup.editScores')
    66 
    6758class EditUser(grok.Permission):
    6859    grok.name('waeup.editUser')
     
    10495
    10596# Local Roles
    106 class ApplicationsManager(grok.Role):
    107     grok.name('waeup.local.ApplicationsManager')
    108     grok.title(u'Applications Manager')
    109     grok.permissions('waeup.viewAcademics')
    110 
    111 class DepartmentManager(grok.Role):
    112     grok.name('waeup.local.DepartmentManager')
    113     grok.title(u'Department Manager')
    114     grok.permissions('waeup.manageAcademics',
    115                      'waeup.showStudents',
    116                      'waeup.exportData')
    117 
    118 class DepartmentOfficer(grok.Role):
    119     grok.name('waeup.local.DepartmentOfficer')
    120     grok.title(u'Department Officer')
    121     grok.permissions('waeup.showStudents',
    122                      'waeup.viewAcademics',
    123                      'waeup.exportPaymentsOverview')
    124 
    125 class ClearanceOfficer(grok.Role):
    126     """The clearance officer role is meant for the
    127     assignment of dynamic roles only.
    128     """
    129     grok.name('waeup.local.ClearanceOfficer')
    130     grok.title(u'Clearance Officer')
    131     grok.permissions('waeup.showStudents',
    132                      'waeup.viewAcademics',
    133                      'waeup.exportData',
    134                      'waeup.clearAllStudents')
    135 
    136 class LocalStudentsManager(grok.Role):
    137     """The local students manager role is meant for the
    138     assignment of dynamic roles only.
    139     """
    140     grok.name('waeup.local.LocalStudentsManager')
    141     grok.title(u'Students Manager')
    142     grok.permissions('waeup.showStudents',
    143                      'waeup.viewAcademics',
    144                      'waeup.exportData')
    145 
    146 class LocalWorkflowManager(grok.Role):
    147     """The local workflow manager role is meant for the
    148     assignment of dynamic roles only.
    149     """
    150     grok.name('waeup.local.LocalWorkflowManager')
    151     grok.title(u'Student Workflow Manager')
    152     grok.permissions('waeup.showStudents',
    153                      'waeup.viewAcademics',
    154                      'waeup.exportData')
    155 
    156 class UGClearanceOfficer(grok.Role):
    157     """The clearance officer role is meant for the
    158     assignment of dynamic roles only.
    159     """
    160     grok.name('waeup.local.UGClearanceOfficer')
    161     grok.title(u'UG Clearance Officer')
    162     grok.permissions('waeup.showStudents',
    163                      'waeup.viewAcademics',
    164                      'waeup.exportData',
    165                      'waeup.clearAllStudents')
    166 
    167 class PGClearanceOfficer(grok.Role):
    168     """The clearance officer role is meant for the
    169     assignment of dynamic roles only.
    170     """
    171     grok.name('waeup.local.PGClearanceOfficer')
    172     grok.title(u'PG Clearance Officer')
    173     grok.permissions('waeup.showStudents',
    174                      'waeup.viewAcademics',
    175                      'waeup.exportData',
    176                      'waeup.clearAllStudents')
    177 
    178 class CourseAdviser100(grok.Role):
    179     """The 100 level course adviser role is meant for the
    180     assignment of dynamic roles only.
    181     """
    182     grok.name('waeup.local.CourseAdviser100')
    183     grok.title(u'Course Adviser 100L')
    184     grok.permissions('waeup.showStudents',
    185                      'waeup.viewAcademics',
    186                      'waeup.exportData')
    187 
    188 class CourseAdviser200(grok.Role):
    189     """The course 200 level adviser role is meant for the
    190     assignment of dynamic roles only.
    191     """
    192     grok.name('waeup.local.CourseAdviser200')
    193     grok.title(u'Course Adviser 200L')
    194     grok.permissions('waeup.showStudents',
    195                      'waeup.viewAcademics',
    196                      'waeup.exportData')
    197 
    198 class CourseAdviser300(grok.Role):
    199     """The 300 level course adviser role is meant for the
    200     assignment of dynamic roles only.
    201     """
    202     grok.name('waeup.local.CourseAdviser300')
    203     grok.title(u'Course Adviser 300L')
    204     grok.permissions('waeup.showStudents',
    205                      'waeup.viewAcademics',
    206                      'waeup.exportData')
    207 
    208 class CourseAdviser400(grok.Role):
    209     """The 400 level course adviser role is meant for the
    210     assignment of dynamic roles only.
    211     """
    212     grok.name('waeup.local.CourseAdviser400')
    213     grok.title(u'Course Adviser 400L')
    214     grok.permissions('waeup.showStudents',
    215                      'waeup.viewAcademics',
    216                      'waeup.exportData')
    217 
    218 class CourseAdviser500(grok.Role):
    219     """The 500 level course adviser role is meant for the
    220     assignment of dynamic roles only.
    221     """
    222     grok.name('waeup.local.CourseAdviser500')
    223     grok.title(u'Course Adviser 500L')
    224     grok.permissions('waeup.showStudents',
    225                      'waeup.viewAcademics',
    226                      'waeup.exportData')
    227 
    228 class CourseAdviser600(grok.Role):
    229     """The 600 level course adviser role is meant for the
    230     assignment of dynamic roles only.
    231     """
    232     grok.name('waeup.local.CourseAdviser600')
    233     grok.title(u'Course Adviser 600L')
    234     grok.permissions('waeup.showStudents',
    235                      'waeup.viewAcademics',
    236                      'waeup.exportData')
    237 
    238 class CourseAdviser700(grok.Role):
    239     """The 700 level course adviser role is meant for the
    240     assignment of dynamic roles only.
    241     """
    242     grok.name('waeup.local.CourseAdviser700')
    243     grok.title(u'Course Adviser 700L')
    244     grok.permissions('waeup.showStudents',
    245                      'waeup.viewAcademics',
    246                      'waeup.exportData')
    247 
    248 class CourseAdviser800(grok.Role):
    249     """The 800 level course adviser role is meant for the
    250     assignment of dynamic roles only.
    251     """
    252     grok.name('waeup.local.CourseAdviser800')
    253     grok.title(u'Course Adviser 800L')
    254     grok.permissions('waeup.showStudents',
    255                      'waeup.viewAcademics',
    256                      'waeup.exportData')
    257 
    258 class Lecturer(grok.Role):
    259     """The lecturer role is meant for the
    260     assignment of dynamic roles only.
    261     """
    262     grok.name('waeup.local.Lecturer')
    263     grok.title(u'Lecturer')
    264     grok.permissions('waeup.showStudents',
    265                      'waeup.editScores',
    266                      'waeup.viewAcademics',
    267                      'waeup.exportData')
    26897
    26998class Owner(grok.Role):
     
    273102
    274103# Site Roles
    275 class AcademicsOfficer(grok.Role):
    276     grok.name('waeup.AcademicsOfficer')
    277     grok.title(u'Academics Officer (view only)')
    278     grok.permissions('waeup.viewAcademics')
    279 
    280 class AcademicsManager(grok.Role):
    281     grok.name('waeup.AcademicsManager')
    282     grok.title(u'Academics Manager')
    283     grok.permissions('waeup.viewAcademics',
    284                      'waeup.manageAcademics')
    285 
    286 class ACManager(grok.Role):
    287     grok.name('waeup.ACManager')
    288     grok.title(u'Access Code Manager')
    289     grok.permissions('waeup.manageACBatches')
     104class ProductsOfficer(grok.Role):
     105    grok.name('waeup.ProductsOfficer')
     106    grok.title(u'Products Officer (view only)')
     107    grok.permissions('waeup.viewProducts')
     108
     109class ProductssManager(grok.Role):
     110    grok.name('waeup.ProductsManager')
     111    grok.title(u'Products Manager')
     112    grok.permissions('waeup.viewProducts',
     113                     'waeup.manageProducts')
    290114
    291115class DataCenterManager(grok.Role):
     
    306130                     'waeup.exportData')
    307131
    308 class BursaryOfficer(grok.Role):
    309     grok.name('waeup.BursaryOfficer')
    310     grok.title(u'Bursary Officer')
    311     grok.permissions('waeup.showStudents',
    312                      'waeup.viewAcademics',
    313                      'waeup.exportBursaryData')
    314 
    315132class UsersManager(grok.Role):
    316133    grok.name('waeup.UsersManager')
     
    329146    grok.permissions('waeup.managePortal',
    330147                     'waeup.manageUsers',
    331                      'waeup.viewAcademics', 'waeup.manageAcademics',
     148                     'waeup.viewProducts', 'waeup.manageProducts',
    332149                     'waeup.manageACBatches',
    333150                     'waeup.manageDataCenter',
     
    335152                     'waeup.exportData',
    336153                     'waeup.viewTranscript',
    337                      'waeup.managePortalConfiguration', 'waeup.viewApplication',
    338                      'waeup.manageApplication', 'waeup.handleApplication',
    339                      'waeup.viewApplicantsTab', 'waeup.payApplicant',
    340                      'waeup.viewApplicationStatistics',
    341                      'waeup.viewStudent', 'waeup.manageStudent',
    342                      'waeup.clearStudent', 'waeup.payStudent',
    343                      'waeup.uploadStudentFile', 'waeup.showStudents',
    344                      'waeup.clearAllStudents',
    345                      'waeup.editScores',
    346                      'waeup.triggerTransition',
    347                      'waeup.viewStudentsContainer','waeup.viewStudentsTab',
    348                      'waeup.handleAccommodation',
    349                      'waeup.viewHostels', 'waeup.manageHostels',
     154                     'waeup.managePortalConfiguration',
    350155                     'waeup.editUser',
    351                      'waeup.loginAsStudent',
    352156                     'waeup.manageReports',
    353157                     'waeup.manageJobs',
     
    363167    grok.permissions(#'waeup.managePortal',
    364168                     #'waeup.manageUsers',
    365                      'waeup.viewAcademics', 'waeup.manageAcademics',
     169                     'waeup.viewProducts', 'waeup.manageProducts',
    366170                     #'waeup.manageACBatches',
    367171                     'waeup.manageDataCenter',
     
    369173                     'waeup.exportData',
    370174                     'waeup.viewTranscript',
    371                      'waeup.managePortalConfiguration', 'waeup.viewApplication',
    372                      'waeup.manageApplication', 'waeup.handleApplication',
    373                      'waeup.viewApplicantsTab', 'waeup.payApplicant',
    374                      'waeup.viewApplicationStatistics',
    375                      'waeup.viewStudent', 'waeup.manageStudent',
    376                      'waeup.clearStudent', 'waeup.payStudent',
    377                      'waeup.uploadStudentFile', 'waeup.showStudents',
    378                      'waeup.clearAllStudents',
    379                      'waeup.editScores',
    380                      #'waeup.triggerTransition',
    381                      'waeup.viewStudentsContainer','waeup.viewStudentsTab',
    382                      'waeup.handleAccommodation',
    383                      'waeup.viewHostels', 'waeup.manageHostels',
     175                     'waeup.managePortalConfiguration',
    384176                     #'waeup.editUser',
    385                      #'waeup.loginAsStudent',
    386177                     'waeup.manageReports',
    387178                     #'waeup.manageJobs',
Note: See TracChangeset for help on using the changeset viewer.