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/applicants
Files:
2 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')
Note: See TracChangeset for help on using the changeset viewer.