Ignore:
Timestamp:
16 Apr 2012, 09:16:34 (13 years ago)
Author:
uli
Message:

Use PhoneNumber?.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

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

    r8173 r8176  
    5555    FriendlyDateDisplayWidget, FriendlyDateDisplayWidget,
    5656    FriendlyDatetimeDisplayWidget)
    57 from waeup.kofa.widgets.phonewidget import PhoneWidget
    5857from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
    5958
     
    353352        'firstname', 'middlename', 'lastname',
    354353        'email', 'phone')
    355     form_fields['phone'].custom_widget = PhoneWidget
    356354    label = _('Add applicant')
    357355    pnav = 3
     
    616614    form_fields['student_id'].for_display = True
    617615    form_fields['applicant_id'].for_display = True
    618     form_fields['phone'].custom_widget = PhoneWidget
    619616    grok.template('applicanteditpage')
    620617    manage_applications = True
     
    749746        'screening_score',
    750747        )
    751     form_fields['phone'].custom_widget = PhoneWidget
    752748    form_fields['applicant_id'].for_display = True
    753749    form_fields['reg_number'].for_display = True
     
    872868            form_fields = grok.AutoFields(IApplicantEdit).select(
    873869                'firstname', 'middlename', 'lastname', 'email', 'phone')
    874             form_fields['phone'].custom_widget = PhoneWidget
    875 
    876870        return form_fields
    877871
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r8160 r8176  
    3333from waeup.kofa.interfaces import MessageFactory as _
    3434from waeup.kofa.payments.interfaces import IOnlinePayment
    35 #from waeup.kofa.schoolgrades import ResultEntryField
     35from waeup.kofa.schema import PhoneNumber
    3636from waeup.kofa.students.vocabularies import GenderSource
    3737from waeup.kofa.university.vocabularies import (
     
    356356        constraint=validate_email,
    357357        )
    358     phone = schema.TextLine(
     358    phone = PhoneNumber(
    359359        title = _(u'Phone'),
    360360        description = u'',
Note: See TracChangeset for help on using the changeset viewer.