- Timestamp:
- 13 Nov 2014, 13:21:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/permissions.py
r11862 r11947 44 44 grok.name('waeup.Authenticated') 45 45 46 class View AcademicsPermission(grok.Permission):47 grok.name('waeup.view Academics')48 49 class Manage AcademicsPermission(grok.Permission):50 grok.name('waeup.manage Academics')46 class ViewProductsPermission(grok.Permission): 47 grok.name('waeup.viewProducts') 48 49 class ManageProductsPermission(grok.Permission): 50 grok.name('waeup.manageProducts') 51 51 52 52 class ManagePortal(grok.Permission): … … 56 56 grok.name('waeup.manageUsers') 57 57 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 67 58 class EditUser(grok.Permission): 68 59 grok.name('waeup.editUser') … … 104 95 105 96 # 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 the127 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 the138 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 the148 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 the158 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 the169 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 the180 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 the190 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 the200 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 the210 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 the220 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 the230 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 the240 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 the250 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 the260 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')268 97 269 98 class Owner(grok.Role): … … 273 102 274 103 # 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') 104 class ProductsOfficer(grok.Role): 105 grok.name('waeup.ProductsOfficer') 106 grok.title(u'Products Officer (view only)') 107 grok.permissions('waeup.viewProducts') 108 109 class ProductssManager(grok.Role): 110 grok.name('waeup.ProductsManager') 111 grok.title(u'Products Manager') 112 grok.permissions('waeup.viewProducts', 113 'waeup.manageProducts') 290 114 291 115 class DataCenterManager(grok.Role): … … 306 130 'waeup.exportData') 307 131 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 315 132 class UsersManager(grok.Role): 316 133 grok.name('waeup.UsersManager') … … 329 146 grok.permissions('waeup.managePortal', 330 147 'waeup.manageUsers', 331 'waeup.view Academics', 'waeup.manageAcademics',148 'waeup.viewProducts', 'waeup.manageProducts', 332 149 'waeup.manageACBatches', 333 150 'waeup.manageDataCenter', … … 335 152 'waeup.exportData', 336 153 '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', 350 155 'waeup.editUser', 351 'waeup.loginAsStudent',352 156 'waeup.manageReports', 353 157 'waeup.manageJobs', … … 363 167 grok.permissions(#'waeup.managePortal', 364 168 #'waeup.manageUsers', 365 'waeup.view Academics', 'waeup.manageAcademics',169 'waeup.viewProducts', 'waeup.manageProducts', 366 170 #'waeup.manageACBatches', 367 171 'waeup.manageDataCenter', … … 369 173 'waeup.exportData', 370 174 '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', 384 176 #'waeup.editUser', 385 #'waeup.loginAsStudent',386 177 'waeup.manageReports', 387 178 #'waeup.manageJobs',
Note: See TracChangeset for help on using the changeset viewer.