Ignore:
Timestamp:
17 Apr 2012, 06:58:31 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove custom_widget setting for phone numbers in views. Overriding the PhoneWidget? registration for the PhoneNumber? schema field should help. But it doesn't work at the moment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r8184 r8187  
    3232    )
    3333from waeup.uniben.interfaces import MessageFactory as _
    34 from waeup.uniben.widgets.phonewidget import PhoneWidget
    3534
    3635class RequestCallbackActionButton(RequestCallbackActionButton):
     
    5150    """
    5251    form_fields = grok.AutoFields(IStudentBase).omit('student_id')
    53     form_fields['phone'].custom_widget = PhoneWidget
    5452
    5553class StudentBaseEditFormPage(StudentBaseEditFormPage):
     
    5856    form_fields = grok.AutoFields(IStudentBase).select(
    5957        'email', 'phone')
    60     form_fields['phone'].custom_widget = PhoneWidget
    6158
    6259
Note: See TracChangeset for help on using the changeset viewer.