Changeset 10847


Ignore:
Timestamp:
15 Dec 2013, 07:12:58 (11 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py

    r10844 r10847  
    2323from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
    2424from zope.formlib.textwidgets import BytesDisplayWidget
    25 from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit
     25from waeup.kofa.applicants.interfaces import (
     26    IApplicant, IApplicantEdit, ISpecialApplicant)
    2627from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage,
    2728    ApplicantManageFormPage, ApplicantEditFormPage,
     
    7475    def form_fields(self):
    7576        if self.context.special:
    76             form_fields = grok.AutoFields(IApplicant).select(
    77                 'applicant_id', 'firstname', 'middlename', 'lastname',
    78                 'reg_number', 'date_of_birth', 'email', 'special_application')
    79             return form_fields
     77            return grok.AutoFields(ISpecialApplicant)
    8078        form_fields = grok.AutoFields(ICustomUGApplicant)
    8179        if self.context.is_nd:
     
    130128    def form_fields(self):
    131129        if self.context.special:
    132             form_fields = grok.AutoFields(IApplicant).select(
    133                 'applicant_id', 'firstname', 'middlename', 'lastname',
    134                 'reg_number', 'date_of_birth', 'email', 'special_application',
    135                 'locked')
    136             return form_fields
     130            return grok.AutoFields(ISpecialApplicant)
    137131        form_fields = grok.AutoFields(ICustomUGApplicant)
    138132        if self.context.is_nd:
     
    154148
    155149        if self.context.special:
    156             form_fields = grok.AutoFields(IApplicantEdit).select(
    157                 'applicant_id', 'firstname', 'middlename', 'lastname',
    158                 'reg_number', 'date_of_birth', 'email', 'special_application')
    159             return form_fields
     150            return grok.AutoFields(ISpecialApplicant)
    160151        form_fields = grok.AutoFields(ICustomUGApplicantEdit)
    161152        if self.context.is_nd:
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r10844 r10847  
    574574        applicant.firstname = u'Vorname'
    575575        applicant.lastname = u'Nachname'
     576        applicant.email = 'aa@aa.aa'
    576577        applicant.special_application = u'transcript_local'
    577578        applicant.applicant_id = u'special_anything'
Note: See TracChangeset for help on using the changeset viewer.