Changeset 10236 for main/waeup.kofa/trunk
- Timestamp:
- 28 May 2013, 09:11:56 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r10233 r10236 324 324 IStudentOnlinePayment, exclude_attribs=False, 325 325 omit=['display_item']))) + ( 326 'student_id','matric_number','state','current_session', 327 'faccode', 'depcode', 'display_fullname') 326 'student_id','matric_number', 327 'firstname', 'middlename', 'lastname', 328 'state','current_session', 329 'entry_session', 'entry_mode', 330 'faccode', 'depcode') 328 331 329 332 #: The title under which this exporter will be displayed … … 335 338 if context is not None: 336 339 student = context.student 337 if name in ['student_id','matric_number', 338 'state','current_session', 339 'faccode','depcode', 340 'display_fullname'] and student is not None: 340 if name in [ 341 'student_id','matric_number', 342 'firstname', 'middlename', 'lastname', 343 'state','current_session', 344 'entry_session', 'entry_mode', 345 'faccode', 'depcode'] and student is not None: 341 346 value = getattr(student, name, None) 342 347 return super( -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r10233 r10236 736 736 result, 737 737 'ac,amount_auth,creation_date,p_category,p_current,p_id,p_item,' 738 'p_level,p_session,p_state,payment_date,r_amount_approved, '739 'r_ code,r_desc,student_id,matric_number,state,current_session,'740 ' faccode,depcode,display_fullname\r\n'738 'p_level,p_session,p_state,payment_date,r_amount_approved,r_code,' 739 'r_desc,student_id,matric_number,firstname,middlename,lastname,' 740 'state,current_session,entry_session,entry_mode,faccode,depcode\r\n' 741 741 742 742 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,p-item,100,2012,' 743 'unpaid,2012-04-01 14:12:01,12.12,r-code,,A111111, '744 ' 234,created,2012,NA,NA,Anna M. Tester\r\n'743 'unpaid,2012-04-01 14:12:01,12.12,r-code,,A111111,234,' 744 'Anna,M.,Tester,created,2012,2010,,NA,NA\r\n' 745 745 ) 746 746 return
Note: See TracChangeset for help on using the changeset viewer.