Changeset 8176 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 16 Apr 2012, 09:16:34 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r8174 r8176 63 63 @property 64 64 def available_fields(self): 65 fields = getFields(self.iface) 65 66 return sorted(list(set( 66 67 ['student_id','reg_number','matric_number', -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8173 r8176 49 49 FriendlyDatetimeDisplayWidget) 50 50 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 51 from waeup.kofa.widgets.phonewidget import PhoneWidget52 51 from waeup.kofa.students.interfaces import ( 53 52 IStudentsContainer, IStudent, … … 341 340 grok.require('waeup.manageStudent') 342 341 form_fields = grok.AutoFields(IStudentBase).omit('student_id') 343 form_fields['phone'].custom_widget = PhoneWidget344 342 grok.template('basemanagepage') 345 343 label = _('Manage base data') … … 1506 1504 form_fields = grok.AutoFields(IStudentBase).select( 1507 1505 'email', 'phone') 1508 form_fields['phone'].custom_widget = PhoneWidget1509 1506 label = _('Edit base data') 1510 1507 pnav = 4 -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r8174 r8176 24 24 IKofaObject, academic_sessions_vocab, validate_email, IKofaUtils) 25 25 from waeup.kofa.interfaces import MessageFactory as _ 26 from waeup.kofa.schema import TextLineChoice, FormattedDate 26 from waeup.kofa.schema import TextLineChoice, FormattedDate, PhoneNumber 27 27 from waeup.kofa.students.vocabularies import ( 28 28 StudyLevelSource, contextual_reg_num_source, contextual_mat_num_source, … … 206 206 constraint=validate_email, 207 207 ) 208 phone = schema.TextLine(208 phone = PhoneNumber( 209 209 title = _(u'Phone'), 210 210 description = u'',
Note: See TracChangeset for help on using the changeset viewer.