Changeset 7136


Ignore:
Timestamp:
19 Nov 2011, 08:20:47 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename permissions and add clearStudent permission.

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  
    9595    grok.context(IApplicantsRoot)
    9696    grok.view(ApplicantsRootPage)
    97     grok.require('waeup.manageApplications')
     97    grok.require('waeup.manageApplication')
    9898    text = 'Manage application section'
    9999
     
    105105    label = 'Manage application section'
    106106    pnav = 3
    107     grok.require('waeup.manageApplications')
     107    grok.require('waeup.manageApplication')
    108108    taboneactions = ['Add applicants container', 'Remove selected','Cancel']
    109109    tabtwoactions1 = ['Remove selected local roles']
     
    170170class ApplicantsContainerAddFormPage(WAeUPAddFormPage):
    171171    grok.context(IApplicantsRoot)
    172     grok.require('waeup.manageApplications')
     172    grok.require('waeup.manageApplication')
    173173    grok.name('add')
    174174    grok.template('applicantscontaineraddpage')
     
    276276    grok.context(IApplicantsContainer)
    277277    grok.view(ApplicantsContainerPage)
    278     grok.require('waeup.manageApplications')
     278    grok.require('waeup.manageApplication')
    279279    text = 'Manage applicants container'
    280280
     
    300300    form_fields['startdate'].custom_widget = FriendlyDateWidget('le')
    301301    form_fields['enddate'].custom_widget = FriendlyDateWidget('le')
    302     grok.require('waeup.manageApplications')
     302    grok.require('waeup.manageApplication')
    303303
    304304    @property
     
    467467    """
    468468    grok.context(IApplicantsContainer)
    469     grok.require('waeup.manageApplications')
     469    grok.require('waeup.manageApplication')
    470470    grok.name('addapplicant')
    471471    grok.template('applicantaddpage')
     
    582582class PDFActionButton(ManageActionButton):
    583583    grok.context(IApplicant)
    584     grok.require('waeup.manageApplications')
     584    grok.require('waeup.viewApplication')
    585585    icon = 'actionicon_pdf.png'
    586586    text = 'Download application slip'
     
    592592    grok.context(IApplicant)
    593593    grok.name('application_slip.pdf')
    594     grok.require('waeup.handleApplication')
     594    grok.require('waeup.viewApplication')
    595595    form_fields = grok.AutoFields(IApplicant).omit(
    596596        'locked').omit('course_admitted')
     
    693693    grok.context(IApplicant)
    694694    grok.view(DisplayApplicant)
    695     grok.require('waeup.manageApplications')
     695    grok.require('waeup.manageApplication')
    696696    text = 'Manage application record'
    697697    target = 'edit_full'
     
    721721    grok.context(IApplicant)
    722722    grok.name('edit_full')
    723     grok.require('waeup.manageApplications')
     723    grok.require('waeup.manageApplication')
    724724    form_fields = grok.AutoFields(IApplicant)
    725725    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
     
    849849    grok.context(IApplicant)
    850850    grok.view(EditApplicantFull)
    851     grok.require('waeup.manageApplications')
     851    grok.require('waeup.manageApplication')
    852852    icon = 'actionicon_view.png'
    853853    text = 'View application record'
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/permissions.py

    • Property svn:keywords set to Id
    r6478 r7136  
    3333    grok.name('waeup.viewApplication')
    3434
    35 class ManageApplications(grok.Permission):
    36     grok.name('waeup.manageApplications')
     35class ManageApplication(grok.Permission):
     36    grok.name('waeup.manageApplication')
    3737
    3838# Local role
     
    4646    grok.name('waeup.ApplicationsOfficer')
    4747    grok.title(u'Applications Officer')
    48     grok.permissions('waeup.manageApplications', 'waeup.viewApplication')
     48    grok.permissions('waeup.manageApplication', 'waeup.viewApplication')
  • main/waeup.sirp/trunk/src/waeup/sirp/permissions.py

    • Property svn:keywords set to Id
    r7122 r7136  
    4646    grok.name('waeup.local.ClearanceOfficer')
    4747    grok.title(u'Clearance Officer')
    48     # to be further defined
    4948    grok.permissions('waeup.View', 'waeup.Public')
    5049
     
    5251    grok.name('waeup.local.CourseAdviser')
    5352    grok.title(u'Course Adviser')
    54     # to be further defined
    5553    grok.permissions('waeup.View', 'waeup.Public')
    5654
     
    6967                     'waeup.managePortalConfiguration',
    7068                     'waeup.manageApplications', 'waeup.handleApplication',
    71                      'waeup.viewStudent', 'waeup.manageStudents',
     69                     'waeup.viewStudent', 'waeup.manageStudent', 'clearStudent'
    7270                     'waeup.viewHostels', 'waeup.manageHostels')
    7371
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7134 r7136  
    260260    grok.context(IStudentsContainer)
    261261    grok.view(StudentsContainerPage)
    262     grok.require('waeup.manageStudents')
     262    grok.require('waeup.manageStudent')
    263263    text = 'Manage student section'
    264264
     
    269269    grok.context(IStudentsContainer)
    270270    grok.name('manage')
    271     grok.require('waeup.manageStudents')
     271    grok.require('waeup.manageStudent')
    272272    grok.template('containermanagepage')
    273273    pnav = 4
     
    317317    grok.context(IStudentsContainer)
    318318    grok.view(StudentsContainerManagePage)
    319     grok.require('waeup.manageStudents')
     319    grok.require('waeup.manageStudent')
    320320    text = 'Add student'
    321321    target = 'addstudent'
     
    325325    """
    326326    grok.context(IStudentsContainer)
    327     grok.require('waeup.manageStudents')
     327    grok.require('waeup.manageStudent')
    328328    grok.name('addstudent')
    329329    grok.template('studentaddpage')
     
    367367    grok.context(IStudent)
    368368    grok.view(StudentBaseDisplayFormPage)
    369     grok.require('waeup.manageStudents')
     369    grok.require('waeup.manageStudent')
    370370    text = 'Manage'
    371371    target = 'manage_base'
     
    376376    grok.context(IStudent)
    377377    grok.name('manage_base')
    378     grok.require('waeup.manageStudents')
     378    grok.require('waeup.manageStudent')
    379379    form_fields = grok.AutoFields(IStudentBase).omit('student_id')
    380380    grok.template('basemanagepage')
     
    463463    grok.context(IStudent)
    464464    grok.view(StudentClearanceDisplayFormPage)
    465     grok.require('waeup.manageStudents')
     465    grok.require('waeup.manageStudent')
    466466    text = 'Manage'
    467467    target = 'edit_clearance'
     
    472472    grok.context(IStudent)
    473473    grok.name('edit_clearance')
    474     grok.require('waeup.manageStudents')
     474    grok.require('waeup.manageStudent')
    475475    grok.template('clearanceeditpage')
    476476    form_fields = grok.AutoFields(IStudentClearance)
     
    508508    grok.context(IStudent)
    509509    grok.view(StudentPersonalDisplayFormPage)
    510     grok.require('waeup.manageStudents')
     510    grok.require('waeup.manageStudent')
    511511    text = 'Manage'
    512512    target = 'edit_personal'
     
    552552    grok.context(IStudentStudyCourse)
    553553    grok.view(StudyCourseDisplayFormPage)
    554     grok.require('waeup.manageStudents')
     554    grok.require('waeup.manageStudent')
    555555    text = 'Manage'
    556556    target = 'manage'
     
    561561    grok.context(IStudentStudyCourse)
    562562    grok.name('manage')
    563     grok.require('waeup.manageStudents')
     563    grok.require('waeup.manageStudent')
    564564    grok.template('studycoursemanagepage')
    565565    form_fields = grok.AutoFields(IStudentStudyCourse)
     
    684684    grok.context(IStudentStudyLevel)
    685685    grok.view(StudyLevelDisplayFormPage)
    686     grok.require('waeup.manageStudents')
     686    grok.require('waeup.manageStudent')
    687687    text = 'Manage'
    688688    target = 'manage'
     
    693693    grok.context(IStudentStudyLevel)
    694694    grok.name('manage')
    695     grok.require('waeup.manageStudents')
     695    grok.require('waeup.manageStudent')
    696696    grok.template('studylevelmanagepage')
    697697    form_fields = grok.AutoFields(IStudentStudyLevel)
     
    752752    grok.context(IStudentStudyLevel)
    753753    grok.name('add')
    754     grok.require('waeup.manageStudents')
     754    grok.require('waeup.manageStudent')
    755755    label = 'Add course ticket'
    756756    form_fields = grok.AutoFields(ICourseTicketAdd).omit(
     
    811811    grok.context(ICourseTicket)
    812812    grok.view(CourseTicketDisplayFormPage)
    813     grok.require('waeup.manageStudents')
     813    grok.require('waeup.manageStudent')
    814814    text = 'Manage'
    815815    target = 'manage'
     
    820820    grok.context(ICourseTicket)
    821821    grok.name('manage')
    822     grok.require('waeup.manageStudents')
     822    grok.require('waeup.manageStudent')
    823823    form_fields = grok.AutoFields(ICourseTicket)
    824824    grok.template('courseticketmanagepage')
     
    932932#    grok.context(IStudentPaymentsContainer)
    933933#    grok.view(PaymentsDisplayFormPage)
    934 #    grok.require('waeup.manageStudents')
     934#    grok.require('waeup.manageStudent')
    935935#    text = 'Manage payments'
    936936#    target = 'manage'
  • main/waeup.sirp/trunk/src/waeup/sirp/students/permissions.py

    r7127 r7136  
    3333    grok.name('waeup.uploadStudentFile')
    3434
    35 class ManageStudents(grok.Permission):
    36     grok.name('waeup.manageStudents')
     35class ManageStudent(grok.Permission):
     36    grok.name('waeup.manageStudent')
     37
     38class ClearStudent(grok.Permission):
     39    grok.name('waeup.clearStudent')
    3740
    3841# Local role
     
    5255    grok.title(u'Students Officer')
    5356    grok.permissions('waeup.View', 'waeup.Public',
    54                      'waeup.viewStudent', 'waeup.manageStudents',
     57                     'waeup.viewStudent', 'waeup.manageStudent',
    5558                     'waeup.payStudent', 'waeup.uploadStudentFile')
  • main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py

    r7134 r7136  
    340340    grok.context(IStudent)
    341341    grok.view(StudentBaseManageFormPage)
    342     grok.require('waeup.manageStudents')
     342    grok.require('waeup.manageStudent')
    343343    grok.template('imageupload')
    344344    label = u'Passport Picture (jpg only):'
Note: See TracChangeset for help on using the changeset viewer.