Changeset 9278 for main/waeup.kofa/trunk
- Timestamp:
- 2 Oct 2012, 19:08:02 (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/export.py
r9258 r9278 249 249 sorted(iface_names( 250 250 IStudentOnlinePayment, exclude_attribs=False))) + ( 251 'student_id','student_state' )251 'student_id','student_state','current_session') 252 252 253 253 #: The title under which this exporter will be displayed -
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r9258 r9278 70 70 try: 71 71 return self.student.state 72 except AttributeError: 73 return None 74 75 @property 76 def current_session(self): 77 try: 78 return self.student.current_session 72 79 except AttributeError: 73 80 return None -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9258 r9278 377 377 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 378 378 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 379 'r_code,r_desc,student_id,student_state \r\n'380 381 ',0.0,2012-04-01 13:12:01,schoolfee,1,,,,,unpaid,,0.0,,,, \r\n'379 'r_code,r_desc,student_id,student_state,current_session\r\n' 380 381 ',0.0,2012-04-01 13:12:01,schoolfee,1,,,,,unpaid,,0.0,,,,,\r\n' 382 382 ) 383 383 return … … 395 395 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 396 396 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 397 'r_code,r_desc,student_id,student_state \r\n'397 'r_code,r_desc,student_id,student_state,current_session\r\n' 398 398 399 399 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,' 400 400 'p-item,100,2012,unpaid,2012-04-01 14:12:01,12.12,' 401 'r-code,,A111111,created \r\n'401 'r-code,,A111111,created,2012\r\n' 402 402 ) 403 403 return … … 414 414 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 415 415 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 416 'r_code,r_desc,student_id,student_state \r\n'416 'r_code,r_desc,student_id,student_state,current_session\r\n' 417 417 418 418 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,' 419 419 'p-item,100,2012,unpaid,2012-04-01 14:12:01,12.12,' 420 'r-code,,A111111,created \r\n'420 'r-code,,A111111,created,2012\r\n' 421 421 ) 422 422 return … … 433 433 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 434 434 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 435 'r_code,r_desc,student_id,student_state \r\n'435 'r_code,r_desc,student_id,student_state,current_session\r\n' 436 436 437 437 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,' 438 438 'p-item,100,2012,unpaid,2012-04-01 14:12:01,12.12,' 439 'r-code,,A111111,created \r\n'440 ) 441 return 439 'r-code,,A111111,created,2012\r\n' 440 ) 441 return
Note: See TracChangeset for help on using the changeset viewer.