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

Use PhoneNumber?.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r8174 r8176  
    6363    @property
    6464    def available_fields(self):
     65        fields = getFields(self.iface)
    6566        return sorted(list(set(
    6667            ['student_id','reg_number','matric_number',
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r8173 r8176  
    4949    FriendlyDatetimeDisplayWidget)
    5050from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
    51 from waeup.kofa.widgets.phonewidget import PhoneWidget
    5251from waeup.kofa.students.interfaces import (
    5352    IStudentsContainer, IStudent,
     
    341340    grok.require('waeup.manageStudent')
    342341    form_fields = grok.AutoFields(IStudentBase).omit('student_id')
    343     form_fields['phone'].custom_widget = PhoneWidget
    344342    grok.template('basemanagepage')
    345343    label = _('Manage base data')
     
    15061504    form_fields = grok.AutoFields(IStudentBase).select(
    15071505        'email', 'phone')
    1508     form_fields['phone'].custom_widget = PhoneWidget
    15091506    label = _('Edit base data')
    15101507    pnav = 4
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r8174 r8176  
    2424    IKofaObject, academic_sessions_vocab, validate_email, IKofaUtils)
    2525from waeup.kofa.interfaces import MessageFactory as _
    26 from waeup.kofa.schema import TextLineChoice, FormattedDate
     26from waeup.kofa.schema import TextLineChoice, FormattedDate, PhoneNumber
    2727from waeup.kofa.students.vocabularies import (
    2828    StudyLevelSource, contextual_reg_num_source, contextual_mat_num_source,
     
    206206        constraint=validate_email,
    207207        )
    208     phone = schema.TextLine(
     208    phone = PhoneNumber(
    209209        title = _(u'Phone'),
    210210        description = u'',
Note: See TracChangeset for help on using the changeset viewer.