Ignore:
Timestamp:
4 Feb 2019, 10:05:45 (6 years ago)
Author:
Henrik Bettermann
Message:

Change permissions for applicants exporters.

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants/browser.py

    r15218 r15319  
    2525from waeup.kofa.applicants.browser import (
    2626    ApplicantRegistrationPage, ApplicantsContainerPage,
    27     ExportPDFPageApplicationSlip)
     27    ExportPDFPageApplicationSlip,
     28    ExportJobContainerOverview,
     29    ExportJobContainerJobStart,
     30    ExportJobContainerDownload)
    2831from waeup.kofa.browser.layout import action, UtilityView
    2932from kofacustom.nigeria.applicants.browser import (
     
    3134    NigeriaPDFApplicationSlip,
    3235    NigeriaApplicantManageFormPage,
    33     NigeriaApplicantEditFormPage)
     36    NigeriaApplicantEditFormPage,
     37    )
    3438from kofacustom.nigeria.applicants.interfaces import (
    3539    UG_OMIT_DISPLAY_FIELDS,
     
    249253        form_fields['reg_number'].for_display = True
    250254        return form_fields
     255
     256class CustomExportJobContainerOverview(ExportJobContainerOverview):
     257
     258    grok.require('waeup.viewApplication')
     259
     260class CustomExportJobContainerJobStart(ExportJobContainerJobStart):
     261
     262    grok.require('waeup.viewApplication')
     263
     264class CustomExportJobContainerDownload(ExportJobContainerDownload):
     265
     266    grok.require('waeup.viewApplication')
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants/viewlets.py

    r15131 r15319  
    1919import grok
    2020from waeup.kofa.browser.viewlets import ManageActionButton
    21 from waeup.kofa.applicants.viewlets import PDFActionButton
     21from waeup.kofa.applicants.viewlets import (
     22    PDFActionButton, ExportApplicantsActionButton)
    2223from waeup.kofa.applicants.workflow import (
    2324    INITIALIZED, ADMITTED, PAID, STARTED, NOT_ADMITTED, CREATED)
     
    3839            return
    3940        return self.view.url(self.view.context, self.target)
     41
     42class ExportApplicantsActionButton(ExportApplicantsActionButton):
     43
     44    grok.require('waeup.viewApplication')
Note: See TracChangeset for help on using the changeset viewer.