Changeset 7868 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 13 Mar 2012, 08:08:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r7841 r7868 46 46 FriendlyDateWidget, FriendlyDateDisplayWidget, 47 47 FriendlyDatetimeDisplayWidget) 48 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 49 from waeup.kofa.widgets.phonewidget import PhoneWidget 48 50 from waeup.kofa.students.interfaces import ( 49 51 IStudentsContainer, IStudent, IStudentClearance, … … 326 328 grok.require('waeup.manageStudent') 327 329 form_fields = grok.AutoFields(IStudentBase).omit('student_id') 330 form_fields['phone'].custom_widget = PhoneWidget 328 331 grok.template('basemanagepage') 329 332 label = _('Manage base data') … … 1435 1438 form_fields = grok.AutoFields(IStudentBase).select( 1436 1439 'email', 'phone') 1440 form_fields['phone'].custom_widget = PhoneWidget 1437 1441 label = _('Edit base data') 1438 1442 pnav = 4
Note: See TracChangeset for help on using the changeset viewer.