Changeset 17850


Ignore:
Timestamp:
16 Jul 2024, 20:47:30 (5 months ago)
Author:
Henrik Bettermann
Message:

Add ExportApplication permission which allows bursary officers
to access the application section and export application data.

Location:
main/waeup.kofa/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r17825 r17850  
    441.8.2.dev0 (unreleased)
    55=======================
     6
     7* Add `ExportApplication` permission which allows bursary officers
     8  to access the application section and export application data.
    69
    710* Add `kpasswd` script to set global principal passwords from commandline.
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r17677 r17850  
    18181818    """
    18191819    grok.context(VirtualApplicantsExportJobContainer)
    1820     grok.require('waeup.manageApplication')
     1820    grok.require('waeup.exportApplication')
    18211821    grok.name('index.html')
    18221822    grok.template('exportjobsindex')
     
    18431843    """
    18441844    grok.context(VirtualApplicantsExportJobContainer)
    1845     grok.require('waeup.manageApplication')
     1845    grok.require('waeup.exportApplication')
    18461846    grok.name('start_export')
    18471847
     
    18831883    """
    18841884    grok.context(VirtualApplicantsExportJobContainer)
    1885     grok.require('waeup.manageApplication')
     1885    grok.require('waeup.exportApplication')
    18861886
    18871887class RefereesRemindPage(UtilityView, grok.View):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/permissions.py

    r15085 r17850  
    4545    """
    4646    grok.name('waeup.manageApplication')
     47
     48class ExportApplication(grok.Permission):
     49    """The ExportApplication permission allows to export the data from a
     50    container page.
     51    """
     52    grok.name('waeup.exportApplication')
    4753
    4854class ViewApplicationStatistics(grok.Permission):
     
    102108    grok.permissions('waeup.manageApplication', 'waeup.viewApplication',
    103109                     'waeup.viewApplicantsTab', 'waeup.payApplicant',
    104                      'waeup.viewApplicationStatistics')
     110                     'waeup.viewApplicationStatistics',
     111                     'waeup.exportApplication')
    105112
    106113class StudentsCreator(grok.Role):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py

    r17217 r17850  
    162162    grok.context(IApplicantsContainer)
    163163    grok.view(ApplicantsContainerPage)
    164     grok.require('waeup.manageApplication')
     164    grok.require('waeup.exportApplication')
    165165    icon = 'actionicon_down.png'
    166166    text = _('Export application data')
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.py

    r16529 r17850  
    537537    """Bursary Officers can export bursary and payments data. They can't 
    538538    access the Data Center but see student data export buttons in the
    539     Academic Section.
     539    Academic Section. Meanwhile they can also view the application section
     540    and export application data.
    540541    """
    541542    grok.name('waeup.BursaryOfficer')
     
    545546                     'waeup.exportBursaryData',
    546547                     'waeup.exportPaymentsOverview',
    547                      'waeup.viewApplicantsTab')
     548                     'waeup.viewApplicantsTab',
     549                     'waeup.viewApplication',
     550                     'waeup.exportApplication')
    548551
    549552
Note: See TracChangeset for help on using the changeset viewer.