Changeset 7136
- Timestamp:
- 19 Nov 2011, 08:20:47 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
-
Property
svn:keywords
set to
Id
r7113 r7136 95 95 grok.context(IApplicantsRoot) 96 96 grok.view(ApplicantsRootPage) 97 grok.require('waeup.manageApplication s')97 grok.require('waeup.manageApplication') 98 98 text = 'Manage application section' 99 99 … … 105 105 label = 'Manage application section' 106 106 pnav = 3 107 grok.require('waeup.manageApplication s')107 grok.require('waeup.manageApplication') 108 108 taboneactions = ['Add applicants container', 'Remove selected','Cancel'] 109 109 tabtwoactions1 = ['Remove selected local roles'] … … 170 170 class ApplicantsContainerAddFormPage(WAeUPAddFormPage): 171 171 grok.context(IApplicantsRoot) 172 grok.require('waeup.manageApplication s')172 grok.require('waeup.manageApplication') 173 173 grok.name('add') 174 174 grok.template('applicantscontaineraddpage') … … 276 276 grok.context(IApplicantsContainer) 277 277 grok.view(ApplicantsContainerPage) 278 grok.require('waeup.manageApplication s')278 grok.require('waeup.manageApplication') 279 279 text = 'Manage applicants container' 280 280 … … 300 300 form_fields['startdate'].custom_widget = FriendlyDateWidget('le') 301 301 form_fields['enddate'].custom_widget = FriendlyDateWidget('le') 302 grok.require('waeup.manageApplication s')302 grok.require('waeup.manageApplication') 303 303 304 304 @property … … 467 467 """ 468 468 grok.context(IApplicantsContainer) 469 grok.require('waeup.manageApplication s')469 grok.require('waeup.manageApplication') 470 470 grok.name('addapplicant') 471 471 grok.template('applicantaddpage') … … 582 582 class PDFActionButton(ManageActionButton): 583 583 grok.context(IApplicant) 584 grok.require('waeup. manageApplications')584 grok.require('waeup.viewApplication') 585 585 icon = 'actionicon_pdf.png' 586 586 text = 'Download application slip' … … 592 592 grok.context(IApplicant) 593 593 grok.name('application_slip.pdf') 594 grok.require('waeup. handleApplication')594 grok.require('waeup.viewApplication') 595 595 form_fields = grok.AutoFields(IApplicant).omit( 596 596 'locked').omit('course_admitted') … … 693 693 grok.context(IApplicant) 694 694 grok.view(DisplayApplicant) 695 grok.require('waeup.manageApplication s')695 grok.require('waeup.manageApplication') 696 696 text = 'Manage application record' 697 697 target = 'edit_full' … … 721 721 grok.context(IApplicant) 722 722 grok.name('edit_full') 723 grok.require('waeup.manageApplication s')723 grok.require('waeup.manageApplication') 724 724 form_fields = grok.AutoFields(IApplicant) 725 725 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') … … 849 849 grok.context(IApplicant) 850 850 grok.view(EditApplicantFull) 851 grok.require('waeup.manageApplication s')851 grok.require('waeup.manageApplication') 852 852 icon = 'actionicon_view.png' 853 853 text = 'View application record' -
Property
svn:keywords
set to
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/permissions.py
-
Property
svn:keywords
set to
Id
r6478 r7136 33 33 grok.name('waeup.viewApplication') 34 34 35 class ManageApplication s(grok.Permission):36 grok.name('waeup.manageApplication s')35 class ManageApplication(grok.Permission): 36 grok.name('waeup.manageApplication') 37 37 38 38 # Local role … … 46 46 grok.name('waeup.ApplicationsOfficer') 47 47 grok.title(u'Applications Officer') 48 grok.permissions('waeup.manageApplication s', 'waeup.viewApplication')48 grok.permissions('waeup.manageApplication', 'waeup.viewApplication') -
Property
svn:keywords
set to
-
main/waeup.sirp/trunk/src/waeup/sirp/permissions.py
-
Property
svn:keywords
set to
Id
r7122 r7136 46 46 grok.name('waeup.local.ClearanceOfficer') 47 47 grok.title(u'Clearance Officer') 48 # to be further defined49 48 grok.permissions('waeup.View', 'waeup.Public') 50 49 … … 52 51 grok.name('waeup.local.CourseAdviser') 53 52 grok.title(u'Course Adviser') 54 # to be further defined55 53 grok.permissions('waeup.View', 'waeup.Public') 56 54 … … 69 67 'waeup.managePortalConfiguration', 70 68 'waeup.manageApplications', 'waeup.handleApplication', 71 'waeup.viewStudent', 'waeup.manageStudent s',69 'waeup.viewStudent', 'waeup.manageStudent', 'clearStudent' 72 70 'waeup.viewHostels', 'waeup.manageHostels') 73 71 -
Property
svn:keywords
set to
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7134 r7136 260 260 grok.context(IStudentsContainer) 261 261 grok.view(StudentsContainerPage) 262 grok.require('waeup.manageStudent s')262 grok.require('waeup.manageStudent') 263 263 text = 'Manage student section' 264 264 … … 269 269 grok.context(IStudentsContainer) 270 270 grok.name('manage') 271 grok.require('waeup.manageStudent s')271 grok.require('waeup.manageStudent') 272 272 grok.template('containermanagepage') 273 273 pnav = 4 … … 317 317 grok.context(IStudentsContainer) 318 318 grok.view(StudentsContainerManagePage) 319 grok.require('waeup.manageStudent s')319 grok.require('waeup.manageStudent') 320 320 text = 'Add student' 321 321 target = 'addstudent' … … 325 325 """ 326 326 grok.context(IStudentsContainer) 327 grok.require('waeup.manageStudent s')327 grok.require('waeup.manageStudent') 328 328 grok.name('addstudent') 329 329 grok.template('studentaddpage') … … 367 367 grok.context(IStudent) 368 368 grok.view(StudentBaseDisplayFormPage) 369 grok.require('waeup.manageStudent s')369 grok.require('waeup.manageStudent') 370 370 text = 'Manage' 371 371 target = 'manage_base' … … 376 376 grok.context(IStudent) 377 377 grok.name('manage_base') 378 grok.require('waeup.manageStudent s')378 grok.require('waeup.manageStudent') 379 379 form_fields = grok.AutoFields(IStudentBase).omit('student_id') 380 380 grok.template('basemanagepage') … … 463 463 grok.context(IStudent) 464 464 grok.view(StudentClearanceDisplayFormPage) 465 grok.require('waeup.manageStudent s')465 grok.require('waeup.manageStudent') 466 466 text = 'Manage' 467 467 target = 'edit_clearance' … … 472 472 grok.context(IStudent) 473 473 grok.name('edit_clearance') 474 grok.require('waeup.manageStudent s')474 grok.require('waeup.manageStudent') 475 475 grok.template('clearanceeditpage') 476 476 form_fields = grok.AutoFields(IStudentClearance) … … 508 508 grok.context(IStudent) 509 509 grok.view(StudentPersonalDisplayFormPage) 510 grok.require('waeup.manageStudent s')510 grok.require('waeup.manageStudent') 511 511 text = 'Manage' 512 512 target = 'edit_personal' … … 552 552 grok.context(IStudentStudyCourse) 553 553 grok.view(StudyCourseDisplayFormPage) 554 grok.require('waeup.manageStudent s')554 grok.require('waeup.manageStudent') 555 555 text = 'Manage' 556 556 target = 'manage' … … 561 561 grok.context(IStudentStudyCourse) 562 562 grok.name('manage') 563 grok.require('waeup.manageStudent s')563 grok.require('waeup.manageStudent') 564 564 grok.template('studycoursemanagepage') 565 565 form_fields = grok.AutoFields(IStudentStudyCourse) … … 684 684 grok.context(IStudentStudyLevel) 685 685 grok.view(StudyLevelDisplayFormPage) 686 grok.require('waeup.manageStudent s')686 grok.require('waeup.manageStudent') 687 687 text = 'Manage' 688 688 target = 'manage' … … 693 693 grok.context(IStudentStudyLevel) 694 694 grok.name('manage') 695 grok.require('waeup.manageStudent s')695 grok.require('waeup.manageStudent') 696 696 grok.template('studylevelmanagepage') 697 697 form_fields = grok.AutoFields(IStudentStudyLevel) … … 752 752 grok.context(IStudentStudyLevel) 753 753 grok.name('add') 754 grok.require('waeup.manageStudent s')754 grok.require('waeup.manageStudent') 755 755 label = 'Add course ticket' 756 756 form_fields = grok.AutoFields(ICourseTicketAdd).omit( … … 811 811 grok.context(ICourseTicket) 812 812 grok.view(CourseTicketDisplayFormPage) 813 grok.require('waeup.manageStudent s')813 grok.require('waeup.manageStudent') 814 814 text = 'Manage' 815 815 target = 'manage' … … 820 820 grok.context(ICourseTicket) 821 821 grok.name('manage') 822 grok.require('waeup.manageStudent s')822 grok.require('waeup.manageStudent') 823 823 form_fields = grok.AutoFields(ICourseTicket) 824 824 grok.template('courseticketmanagepage') … … 932 932 # grok.context(IStudentPaymentsContainer) 933 933 # grok.view(PaymentsDisplayFormPage) 934 # grok.require('waeup.manageStudent s')934 # grok.require('waeup.manageStudent') 935 935 # text = 'Manage payments' 936 936 # target = 'manage' -
main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py
r7127 r7136 33 33 grok.name('waeup.uploadStudentFile') 34 34 35 class ManageStudents(grok.Permission): 36 grok.name('waeup.manageStudents') 35 class ManageStudent(grok.Permission): 36 grok.name('waeup.manageStudent') 37 38 class ClearStudent(grok.Permission): 39 grok.name('waeup.clearStudent') 37 40 38 41 # Local role … … 52 55 grok.title(u'Students Officer') 53 56 grok.permissions('waeup.View', 'waeup.Public', 54 'waeup.viewStudent', 'waeup.manageStudent s',57 'waeup.viewStudent', 'waeup.manageStudent', 55 58 'waeup.payStudent', 'waeup.uploadStudentFile') -
main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py
r7134 r7136 340 340 grok.context(IStudent) 341 341 grok.view(StudentBaseManageFormPage) 342 grok.require('waeup.manageStudent s')342 grok.require('waeup.manageStudent') 343 343 grok.template('imageupload') 344 344 label = u'Passport Picture (jpg only):'
Note: See TracChangeset for help on using the changeset viewer.