Changeset 10907 for main/waeup.aaue/trunk/src
- Timestamp:
- 14 Jan 2014, 06:54:26 (11 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/etranzact
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r10070 r10907 90 90 faculty = owner.faculty 91 91 department = owner.department 92 study_type = owner.current_mode 93 email = owner.email 94 phone = owner.phone 95 level = owner.current_level 92 96 except (TypeError, AttributeError): 93 97 self.output = '-3' … … 96 100 payment_type = results[0].category 97 101 programme_type = results[0].p_item 102 98 103 academic_session = academic_sessions_vocab.getTerm( 99 104 results[0].p_session).title 100 105 status = results[0].p_state 101 106 self.output = ( 102 'FULL_NAME=%s&' + 103 'FACULTY=%s&' + 104 'DEPARTMENT=%s&' + 105 'RETURN_TYPE=%s&' + 106 'PROGRAMME_TYPE=%s&' + 107 'PAYMENT_TYPE=%s&' + 108 'ACADEMIC_SESSION=%s&' + 109 'MATRIC_NO=%s&' + 110 'FEE_AMOUNT=%s&' + 111 'TRANSACTION_STATUS=%s') % (full_name, faculty, 112 department, PAYEE_ID, programme_type, payment_type, 113 academic_session, matric_no, amount, status) 107 # Version 1 108 #'FULL_NAME=%s&' + 109 #'FACULTY=%s&' + 110 #'DEPARTMENT=%s&' + 111 #'RETURN_TYPE=%s&' + 112 #'PROGRAMME_TYPE=%s&' + 113 #'PAYMENT_TYPE=%s&' + 114 #'ACADEMIC_SESSION=%s&' + 115 #'MATRIC_NO=%s&' + 116 #'FEE_AMOUNT=%s&' + 117 #'TRANSACTION_STATUS=%s' 118 119 # Version 2 120 'PayeeName=%s~' + 121 'Faculty=%s~' + 122 'Department=%s~' + 123 'Level=%s~' + 124 'ProgrammeType=%s~' + 125 'StudyType=%s~' + 126 'Session=%s~' + 127 'PayeeID=%s~' + 128 'Amount=%s~' + 129 'FeeStatus=%s~' + 130 'PaymentType=%s~' + 131 'MatricNumber=%s~' + 132 'Email=%s~' + 133 'PhoneNumber=%s' 134 135 ) % (full_name, faculty, 136 department, level, programme_type, study_type, 137 academic_session, PAYEE_ID, amount, status, payment_type, 138 matric_no, email, phone) 114 139 return 115 140 -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r9905 r10907 76 76 self.browser.open('http://localhost/app/feerequest?PAYEE_ID=%s' % self.p_id) 77 77 self.assertEqual(self.browser.contents, 78 'FULL_NAME=Anna Tester&' 79 'FACULTY=fac1&' 80 'DEPARTMENT=dep1&' 81 'RETURN_TYPE=%s&' 82 'PROGRAMME_TYPE=CERT1&' 83 'PAYMENT_TYPE=School Fee&' 84 'ACADEMIC_SESSION=2004/2005&' 85 'MATRIC_NO=E1000000&' 86 'FEE_AMOUNT=1234.0&' 87 'TRANSACTION_STATUS=unpaid' % self.p_id) 78 # Version 1 79 #'FULL_NAME=Anna Tester&' 80 #'FACULTY=fac1&' 81 #'DEPARTMENT=dep1&' 82 #'RETURN_TYPE=%s&' 83 #'PROGRAMME_TYPE=CERT1&' 84 #'PAYMENT_TYPE=School Fee&' 85 #'ACADEMIC_SESSION=2004/2005&' 86 #'MATRIC_NO=E1000000&' 87 #'FEE_AMOUNT=1234.0&' 88 #'TRANSACTION_STATUS=unpaid' 89 90 # Version 2 91 'PayeeName=Anna Tester~' 92 'Faculty=fac1~' 93 'Department=dep1~' 94 'Level=100~' 95 'ProgrammeType=CERT1~' 96 'StudyType=ug_ft~' 97 'Session=2004/2005~' 98 'PayeeID=%s~' 99 'Amount=1234.0~' 100 'FeeStatus=unpaid~' 101 #Semester=SECOND~ 102 'PaymentType=School Fee~' 103 'MatricNumber=E1000000~' 104 'Email=aa@aa.ng~' 105 'PhoneNumber=1234' % self.p_id) 106 88 107 self.browser.open('http://localhost/app/feerequest?NONSENSE=nonsense') 89 108 self.assertEqual(self.browser.contents, '-1')
Note: See TracChangeset for help on using the changeset viewer.