Changeset 9702 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 21 Nov 2012, 15:18:31 (12 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/browser.py
r9701 r9702 356 356 grok.require('waeup.viewStudent') 357 357 grok.template('basepage') 358 form_fields = grok.AutoFields(IStudentBase).omit('password', 'suspended') 358 form_fields = grok.AutoFields(IStudentBase).omit( 359 'password', 'suspended', 'suspended_comment') 359 360 pnav = 4 360 361 … … 610 611 grok.require('waeup.viewStudent') 611 612 prefix = 'form' 612 omit_fields = ('password', 'suspended', 'phone', 'adm_code') 613 omit_fields = ( 614 'password', 'suspended', 'phone', 615 'adm_code', 'suspended_comment') 613 616 614 617 @property … … 1047 1050 'validation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 1048 1051 prefix = 'form' 1049 omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex') 1052 omit_fields = ( 1053 'password', 'suspended', 'phone', 1054 'adm_code', 'sex', 'suspended_comment') 1050 1055 1051 1056 @property … … 1501 1506 prefix = 'form' 1502 1507 note = None 1503 omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex') 1508 omit_fields = ( 1509 'password', 'suspended', 'phone', 1510 'adm_code', 'sex', 'suspended_comment') 1504 1511 1505 1512 @property … … 1744 1751 form_fields['booking_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 1745 1752 prefix = 'form' 1746 omit_fields = ('password', 'suspended', 'phone', 'adm_code') 1753 omit_fields = ( 1754 'password', 'suspended', 'phone', 'adm_code', 'suspended_comment') 1747 1755 1748 1756 @property -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r9698 r9702 169 169 ) 170 170 171 suspended_comment = schema.Text( 172 title = _(u"Reasons for Deactivation"), 173 required = False, 174 description = _( 175 u'This message will be shown if and only if deactivated ' 176 'students try to login.'), 177 ) 178 171 179 student_id = schema.TextLine( 172 180 title = _(u'Student Id'), -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9690 r9702 52 52 'firstname,lastname,matric_number,middlename,nationality,officer_comment,' 53 53 'perm_address,personal_updated,' 54 'phone,reg_number,sex,student_id,suspended, password,'54 'phone,reg_number,sex,student_id,suspended,suspended_comment,password,' 55 55 'state,history,certcode,is_postgrad,current_level,current_session\r\n' 56 56 57 57 'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,' 58 58 'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,' 59 '+234-123-12345#,123,f,A111111,0,, created'59 '+234-123-12345#,123,f,A111111,0,,,created' 60 60 in result 61 61 ) … … 73 73 'firstname,lastname,matric_number,middlename,nationality,officer_comment,' 74 74 'perm_address,personal_updated' 75 ',phone,reg_number,sex,student_id,suspended, password,'75 ',phone,reg_number,sex,student_id,suspended,suspended_comment,password,' 76 76 'state,history,certcode,is_postgrad,current_level,current_session\r\n' 77 77 78 78 'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,' 79 79 'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,' 80 '+234-123-12345#,123,f,A111111,0,, created'80 '+234-123-12345#,123,f,A111111,0,,,created' 81 81 in result 82 82 ) … … 93 93 'firstname,lastname,matric_number,middlename,nationality,officer_comment,' 94 94 'perm_address,personal_updated' 95 ',phone,reg_number,sex,student_id,suspended, password,'95 ',phone,reg_number,sex,student_id,suspended,suspended_comment,password,' 96 96 'state,history,certcode,is_postgrad,current_level,current_session\r\n' 97 97 98 98 'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,' 99 99 'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,' 100 '+234-123-12345#,123,f,A111111,0,, created'100 '+234-123-12345#,123,f,A111111,0,,,created' 101 101 in result 102 102 )
Note: See TracChangeset for help on using the changeset viewer.