Ignore:
Timestamp:
12 Oct 2020, 09:35:47 (4 years ago)
Author:
Henrik Bettermann
Message:

Revert r16276.

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

Legend:

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

    r16276 r16277  
    5555    ICustomPGApplicantEdit, ICustomUGApplicantEdit,
    5656    ICustomApplicantOnlinePayment, ICustomApplicantRefereeReport,
    57     ITranscriptApplicant, ICustomApplicantRegisterUpdate
     57    ITranscriptApplicant
    5858    )
    5959from kofacustom.iuokada.interfaces import MessageFactory as _
     
    369369        return form_fields
    370370
    371 class CustomApplicantRegistrationPage(ApplicantRegistrationPage):
    372     """Captcha'd registration page for applicants.
    373     """
    374     @property
    375     def form_fields(self):
    376         form_fields = None
    377         if self.context.mode == 'update':
    378             form_fields = grok.AutoFields(ICustomApplicantRegisterUpdate).select(
    379                 'lastname','reg_number','email')
    380         else: #if self.context.mode == 'create':
    381             form_fields = grok.AutoFields(ICustomUGApplicant).select(
    382                 'firstname', 'middlename', 'lastname', 'email', 'phone')
    383         return form_fields
    384 
    385371class RefereeReportAddFormPage(RefereeReportAddFormPage):
    386372    """Add-form to add an referee report. This form
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py

    r16276 r16277  
    3636    nats_vocab, GenderSource, StudyLevelSource)
    3737from waeup.kofa.applicants.interfaces import (
    38     contextual_reg_num_source, IApplicantBaseData, IApplicantRefereeReport,
    39     contextual_email_source, IApplicantRegisterUpdate)
     38    contextual_reg_num_source, IApplicantBaseData, IApplicantRefereeReport)
    4039from waeup.kofa.refereeentries import RefereeEntryField
    4140from kofacustom.nigeria.applicants.interfaces import (
     
    145144    """
    146145
    147     email = TextLineChoice(
    148         title = _(u'Email Address Test'),
    149         required = False,
    150         constraint=validate_email,
    151         source = contextual_email_source,
    152         )
    153 
    154146    subtype = schema.Choice(
    155147        title = _(u'Application Subtype'),
     
    387379    adding them to the PG_OMIT* tuples.
    388380    """
    389 
    390     email = TextLineChoice(
    391         title = _(u'Email Address Test'),
    392         required = False,
    393         constraint=validate_email,
    394         source = contextual_email_source,
    395         )
    396381
    397382    sponsor = schema.Choice(
     
    618603        required = True,
    619604        )
    620     email = TextLineChoice(
    621         title = _(u'Email Address Test'),
    622         required = False,
     605    email = schema.ASCIILine(
     606        title = _(u'Email Address'),
     607        required = True,
    623608        constraint=validate_email,
    624         source = contextual_email_source,
    625609        )
    626610    date_of_birth = FormattedDate(
     
    654638        required = True,
    655639        )
    656     email = TextLineChoice(
    657         title = _(u'Email Address Test'),
    658         required = False,
     640    email = schema.ASCIILine(
     641        title = _(u'Email Address'),
     642        required = True,
    659643        constraint=validate_email,
    660         source = contextual_email_source,
    661644        )
    662645    date_of_birth = FormattedDate(
     
    673656    'phone'].order =  ICustomPGApplicantEdit['email'].order
    674657
    675 class ICustomApplicantRegisterUpdate(IApplicantRegisterUpdate):
    676     """This is a representation of an applicant for first-time registration.
    677     This interface is used when applicants use the registration page to
    678     update their records.
    679     """
    680 
    681     email = TextLineChoice(
    682         title = _(u'Email Address Test'),
    683         required = False,
    684         constraint=validate_email,
    685         source = contextual_email_source,
    686         )
    687 
    688658class ICustomApplicantOnlinePayment(INigeriaApplicantOnlinePayment):
    689659    """An applicant payment via payment gateways.
Note: See TracChangeset for help on using the changeset viewer.