Ignore:
Timestamp:
1 Dec 2022, 15:57:05 (2 years ago)
Author:
Henrik Bettermann
Message:

Finetune exporter pages.

Location:
main/kofacustom.lpng/trunk/src/kofacustom/lpng
Files:
2 added
5 edited

Legend:

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

    r17195 r17201  
    3434    BalancePaymentAddFormPage,
    3535    ExportPDFPaymentSlipPage,
    36     ApplicantBaseDisplayFormPage)
     36    ApplicantBaseDisplayFormPage,
     37    ExportJobContainerJobStart)
    3738from waeup.kofa.applicants.workflow import (
    3839    INITIALIZED, STARTED, PAID, SUBMITTED,
     
    5253from kofacustom.lpng.interfaces import MessageFactory as _
    5354
     55
     56class CustomExportJobContainerJobStart(ExportJobContainerJobStart):
     57    """View that starts three export jobs, one for applicants, a second
     58    one for applicant payments and a third for referee reports.
     59    """
     60
     61    EXPORTER_LIST = ('applicants',
     62                   'applicantpayments',
     63                   )
    5464       
    5565class CustomApplicantDisplayFormPage(ApplicantDisplayFormPage):
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/applicants/interfaces.py

    r17192 r17201  
    253253    email = schema.ASCIILine(
    254254        title = _(u'Email Address'),
    255         required = True,
     255        required = False,
    256256        constraint=validate_email,
    257257        )
     
    313313        )
    314314
     315    email = schema.ASCIILine(
     316        title = _(u'Email Address'),
     317        required = True,
     318        constraint=validate_email,
     319        )
     320
    315321ICustomApplicantEdit['reg_number'].order = ICustomApplicant['reg_number'].order
     322ICustomApplicantEdit['email'].order = ICustomApplicant['email'].order
    316323
    317324class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment):
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/browser/pages.py

    r16993 r17201  
    1717##
    1818import grok
    19 from waeup.kofa.interfaces import IKofaUtils, IKofaObject
     19from zope.component import (
     20    getUtility, queryUtility, createObject, getAllUtilitiesRegisteredFor,
     21    getUtilitiesFor,
     22    )
     23from waeup.kofa.interfaces import IKofaUtils, IKofaObject, ICSVExporter
    2024from waeup.kofa.browser.pages import (
    2125    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
    22     LoginPage, CertificatePage, CertificateManageFormPage)
     26    LoginPage, CertificatePage, CertificateManageFormPage,
     27    ExportCSVPage)
    2328from waeup.kofa.university.interfaces import ICertificate
    2429from kofacustom.lpng.interfaces import (
    2530    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
     31
     32grok.templatedir('templates')
    2633
    2734class CustomSessionConfigurationAddFormPage(SessionConfigurationAddFormPage):
     
    3542    form_fields = grok.AutoFields(ICustomSessionConfiguration)
    3643
     44class CustomExportCSVPage(ExportCSVPage):
     45
     46    grok.template('datacenterexportpage')
     47
     48    def getExporters(self):
     49        title_name_tuples = [
     50            (u'Registrants', u'applicants'),
     51            (u'Registrant Payments', u'applicantpayments'),
     52            (u'Registrants Containers', u'applicantscontainers'),
     53            (u'Users', u'users'),
     54            ]
     55        return sorted(title_name_tuples)
  • main/kofacustom.lpng/trunk/src/kofacustom/lpng/locales/en/LC_MESSAGES/waeup.kofa.po

    r17196 r17201  
    7777
    7878msgid "Applicant admitted"
    79 msgstr "Applicant registered"
     79msgstr "Registrant registered"
     80
     81msgid "Applicant Payments"
     82msgstr "Registrant Payments"
    8083
    8184msgid "Student record created"
Note: See TracChangeset for help on using the changeset viewer.