Changeset 16450 for main/waeup.kofa/trunk
- Timestamp:
- 11 Apr 2021, 10:17:28 (4 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r16431 r16450 4 4 1.6.1.dev0 (unreleased) 5 5 ======================= 6 7 * Add `key` to `CertificateExporter`. 6 8 7 9 * Add payment option (`p_option`) field to payment tickets and add -
main/waeup.kofa/trunk/src/waeup/kofa/university/export.py
r15496 r16450 166 166 167 167 fields = ('code', 'faculty_code', 'department_code', 'title', 'study_mode', 168 'degree', 168 'degree','key', 169 169 'start_level', 'end_level', 'application_category', 'ratio', 170 170 'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4', … … 179 179 which is the code of the department that offers the certificate. 180 180 """ 181 if name == 'key': 182 value = context.__name__ 181 183 return super(CertificateExporter, self).mangle_value( 182 184 value, name, context) -
main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py
r15496 r16450 400 400 result, 401 401 'code,faculty_code,department_code,title,study_mode,' 402 'degree, start_level,'402 'degree,key,start_level,' 403 403 'end_level,application_category,ratio,school_fee_1,' 404 404 'school_fee_2,school_fee_3,school_fee_4,' … … 406 406 'custom_float_1,custom_float_2,' 407 407 'users_with_local_roles\r\n' 408 'CERT1,F1,D1,Master of Cheese,ct_ft,, 100,300,basic,,,,,,,,,,'408 'CERT1,F1,D1,Master of Cheese,ct_ft,,CERT1,100,300,basic,,,,,,,,,,' 409 409 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 410 410 ) … … 418 418 result, 419 419 'code,faculty_code,department_code,title,study_mode,' 420 'degree, start_level,'420 'degree,key,start_level,' 421 421 'end_level,application_category,ratio,school_fee_1,' 422 422 'school_fee_2,school_fee_3,school_fee_4,' … … 424 424 'custom_float_1,custom_float_2,' 425 425 'users_with_local_roles\r\n' 426 'CERT1,F1,D1,Master of Cheese,ct_ft,, 100,300,basic,,,,,,,,,,'426 'CERT1,F1,D1,Master of Cheese,ct_ft,,CERT1,100,300,basic,,,,,,,,,,' 427 427 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 428 'CERT2,F1,D1,Master of Cheddar,ct_ft,, 400,700,cest,,,,,,,,,,[]\r\n'428 'CERT2,F1,D1,Master of Cheddar,ct_ft,,CERT2,400,700,cest,,,,,,,,,,[]\r\n' 429 429 ) 430 430 return … … 438 438 result, 439 439 'code,faculty_code,department_code,title,study_mode,' 440 'degree, start_level,'440 'degree,key,start_level,' 441 441 'end_level,application_category,ratio,' 442 442 'school_fee_1,school_fee_2,school_fee_3,school_fee_4,' … … 444 444 'custom_float_1,custom_float_2,' 445 445 'users_with_local_roles\r\n' 446 'CERT1,F1,D1,Master of Cheese,ct_ft,, 100,300,basic,,,,,,,,,,'446 'CERT1,F1,D1,Master of Cheese,ct_ft,,CERT1,100,300,basic,,,,,,,,,,' 447 447 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 448 'CERT2,F1,D1,Master of Cheddar,ct_ft,, 400,700,cest,,,,,,,,,,[]\r\n'449 'CERT3,F1,D2,Cert. of Rubbish,dp_pt,, 100,200,no,,,,,,,,,,[]\r\n'448 'CERT2,F1,D1,Master of Cheddar,ct_ft,,CERT2,400,700,cest,,,,,,,,,,[]\r\n' 449 'CERT3,F1,D2,Cert. of Rubbish,dp_pt,,CERT3,100,200,no,,,,,,,,,,[]\r\n' 450 450 ) 451 451 return … … 458 458 result, 459 459 'code,faculty_code,department_code,title,study_mode,' 460 'degree, start_level,'460 'degree,key,start_level,' 461 461 'end_level,application_category,ratio,' 462 462 'school_fee_1,school_fee_2,school_fee_3,school_fee_4,' … … 464 464 'custom_float_1,custom_float_2,' 465 465 'users_with_local_roles\r\n' 466 'CERT1,F1,D1,Master of Cheese,ct_ft,, 100,300,basic,,,,,,,,,,'466 'CERT1,F1,D1,Master of Cheese,ct_ft,,CERT1,100,300,basic,,,,,,,,,,' 467 467 '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n' 468 'CERT2,F1,D1,Master of Cheddar,ct_ft,, 400,700,cest,,,,,,,,,,[]\r\n'469 'CERT3,F1,D2,Cert. of Rubbish,dp_pt,, 100,200,no,,,,,,,,,,[]\r\n'468 'CERT2,F1,D1,Master of Cheddar,ct_ft,,CERT2,400,700,cest,,,,,,,,,,[]\r\n' 469 'CERT3,F1,D2,Cert. of Rubbish,dp_pt,,CERT3,100,200,no,,,,,,,,,,[]\r\n' 470 470 ) 471 471 return
Note: See TracChangeset for help on using the changeset viewer.