Changeset 8176 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 16 Apr 2012, 09:16:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r8079 r8176 61 61 from waeup.kofa.authentication import LocalRoleSetEvent 62 62 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 63 from waeup.kofa.widgets.phonewidget import PhoneWidget64 63 from waeup.kofa.authentication import get_principal_role_manager 65 64 from waeup.kofa.utils.helpers import get_user_account … … 430 429 grok.template('usereditformpage') 431 430 form_fields = grok.AutoFields(IUserAccount) 432 form_fields['phone'].custom_widget = PhoneWidget433 431 label = _('Add user') 434 432 … … 471 469 grok.require('waeup.manageUsers') 472 470 form_fields = grok.AutoFields(IUserAccount).omit('name') 473 form_fields['phone'].custom_widget = PhoneWidget474 471 475 472 def label(self): … … 552 549 'name', 'description', 'roles') 553 550 label = _(u"My Preferences") 554 form_fields['phone'].custom_widget = PhoneWidget555 551 556 552 def setUpWidgets(self, ignore_request=False):
Note: See TracChangeset for help on using the changeset viewer.