Changeset 8187 for main/waeup.uniben/trunk/src/waeup/uniben/browser
- Timestamp:
- 17 Apr 2012, 06:58:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/browser/pages.py
r8080 r8187 24 24 from waeup.kofa.browser.pages import ( 25 25 UserEditFormPage, UserManageFormPage, AddUserFormPage) 26 from waeup.uniben.widgets.phonewidget import PhoneWidget27 26 28 27 class SessionConfigurationAddFormPage(SessionConfigurationAddFormPage): … … 35 34 """ 36 35 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 = PhoneWidget43 44 class UserManageFormPage(UserManageFormPage):45 """Manage a user account.46 """47 form_fields = grok.AutoFields(IUserAccount).omit('name')48 form_fields['phone'].custom_widget = PhoneWidget49 50 class UserEditFormPage(UserEditFormPage):51 """Edit a user account by user52 """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.