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/browser/pages.py

    r8080 r8187  
    2424from waeup.kofa.browser.pages import (
    2525    UserEditFormPage, UserManageFormPage, AddUserFormPage)
    26 from waeup.uniben.widgets.phonewidget import PhoneWidget
    2726
    2827class SessionConfigurationAddFormPage(SessionConfigurationAddFormPage):
     
    3534    """
    3635    form_fields = grok.AutoFields(ISessionConfiguration)
    37 
    38 class AddUserFormPage(AddUserFormPage):
    39     """Add a user account.
    40     """
    41     form_fields = grok.AutoFields(IUserAccount)
    42     form_fields['phone'].custom_widget = PhoneWidget
    43 
    44 class UserManageFormPage(UserManageFormPage):
    45     """Manage a user account.
    46     """
    47     form_fields = grok.AutoFields(IUserAccount).omit('name')
    48     form_fields['phone'].custom_widget = PhoneWidget
    49 
    50 class UserEditFormPage(UserEditFormPage):
    51     """Edit a user account by user
    52     """
    53     form_fields = grok.AutoFields(IUserAccount).omit(
    54         'name', 'description', 'roles')
    55     form_fields['phone'].custom_widget = PhoneWidget
Note: See TracChangeset for help on using the changeset viewer.