Changeset 8080 for main/waeup.uniben/trunk
- Timestamp:
- 9 Apr 2012, 12:42:52 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r8076 r8080 101 101 form_fields['student_id'].for_display = True 102 102 form_fields['applicant_id'].for_display = True 103 form_fields['phone'].custom_widget = PhoneWidget104 103 return form_fields 105 104 -
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.