Changeset 7181 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 24 Nov 2011, 05:52:34 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7171 r7181 948 948 grok.context(IStudentPaymentsContainer) 949 949 grok.name('index') 950 grok.require('waeup. handleStudent')950 grok.require('waeup.payStudent') 951 951 form_fields = grok.AutoFields(IStudentPaymentsContainer) 952 952 grok.template('paymentsmanagepage') … … 1018 1018 grok.context(IStudentPaymentsContainer) 1019 1019 grok.name('addop') 1020 grok.require('waeup. handleStudent')1020 grok.require('waeup.payStudent') 1021 1021 form_fields = grok.AutoFields(IStudentOnlinePayment).select( 1022 1022 'p_category') … … 1110 1110 grok.context(IStudentOnlinePayment) 1111 1111 grok.view(OnlinePaymentDisplayFormPage) 1112 grok.require('waeup. handleStudent')1112 grok.require('waeup.payStudent') 1113 1113 icon = 'actionicon_call.png' 1114 1114 text = 'Request callback' … … 1218 1218 grok.context(IStudentAccommodation) 1219 1219 grok.name('index') 1220 grok.require('waeup.handle Student')1220 grok.require('waeup.handleAccommodation') 1221 1221 form_fields = grok.AutoFields(IStudentAccommodation) 1222 1222 grok.template('accommodationmanagepage') … … 1283 1283 grok.context(IStudentAccommodation) 1284 1284 grok.view(AccommodationManageFormPage) 1285 grok.require('waeup.handle Student')1285 grok.require('waeup.handleAccommodation') 1286 1286 icon = 'actionicon_home.png' 1287 1287 text = 'Book accommodation' … … 1293 1293 grok.context(IStudentAccommodation) 1294 1294 grok.name('add') 1295 grok.require('waeup.handle Student')1295 grok.require('waeup.handleAccommodation') 1296 1296 grok.template('enterpin') 1297 1297 ac_prefix = 'HOS' … … 1384 1384 grok.context(IBedTicket) 1385 1385 grok.name('index') 1386 grok.require('waeup. viewStudent')1386 grok.require('waeup.handleAccommodation') 1387 1387 form_fields = grok.AutoFields(IBedTicket) 1388 1388 form_fields[ … … 1402 1402 grok.context(IBedTicket) 1403 1403 grok.view(BedTicketDisplayFormPage) 1404 grok.require('waeup. viewStudent')1404 grok.require('waeup.handleAccommodation') 1405 1405 icon = 'actionicon_pdf.png' 1406 1406 text = 'Download bed allocation slip' … … 1412 1412 grok.context(IBedTicket) 1413 1413 grok.name('bed_allocation.pdf') 1414 grok.require('waeup. viewStudent')1414 grok.require('waeup.handleAccommodation') 1415 1415 form_fields = grok.AutoFields(IBedTicket) 1416 1416 form_fields['booking_date'].custom_widget = FriendlyDateDisplayWidget('le') -
main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py
r7178 r7181 30 30 grok.name('waeup.payStudent') 31 31 32 class HandleAccommodation(grok.Permission): 33 grok.name('waeup.handleAccommodation') 34 32 35 class UploadStudentFile(grok.Permission): 33 36 grok.name('waeup.uploadStudentFile') … … 44 47 grok.title(u'Student Record Owner') 45 48 grok.permissions('waeup.handleStudent', 'waeup.uploadStudentFile', 46 'waeup.viewStudent', 'waeup.payStudent') 49 'waeup.viewStudent', 'waeup.payStudent', 50 'waeup.handleAccommodation') 47 51 48 52 # Site Roles … … 60 64 grok.title(u'Students Manager') 61 65 grok.permissions('waeup.viewStudent', 'waeup.manageStudent', 62 'waeup.payStudent', 'waeup.uploadStudentFile') 66 'waeup.payStudent', 'waeup.uploadStudentFile', 67 'waeup.handleAccommodation') 63 68 64 69 class StudentsClearanceOfficer(grok.Role): -
main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py
r7136 r7181 63 63 class StudentManagePaymentsLink(StudentManageLink): 64 64 grok.order(4) 65 grok.require('waeup.payStudent') 65 66 link = 'payments' 66 67 text = u'Payments' … … 68 69 class StudentManageAccommodationLink(StudentManageLink): 69 70 grok.order(5) 71 grok.require('waeup.handleAccommodation') 70 72 link = 'accommodation' 71 73 text = u'Accommodation Data'
Note: See TracChangeset for help on using the changeset viewer.