Changeset 8080 for main/waeup.uniben/trunk/src/waeup/uniben/browser
- Timestamp:
- 9 Apr 2012, 12:42:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/browser/pages.py
r8020 r8080 19 19 from waeup.kofa.browser.pages import ( 20 20 SessionConfigurationAddFormPage, SessionConfigurationManageFormPage) 21 from waeup.kofa.interfaces import IUserAccount 21 22 from waeup.uniben.interfaces import ( 22 23 ISessionConfiguration, ISessionConfigurationAdd) 24 from waeup.kofa.browser.pages import ( 25 UserEditFormPage, UserManageFormPage, AddUserFormPage) 26 from waeup.uniben.widgets.phonewidget import PhoneWidget 23 27 24 28 class SessionConfigurationAddFormPage(SessionConfigurationAddFormPage): … … 31 35 """ 32 36 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.