Changeset 16266 for main/waeup.kofa/trunk/src
- Timestamp:
- 5 Oct 2020, 09:23:41 (4 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r16236 r16266 1445 1445 ${e} 1446 1446 1447 Comment by Import Manager:""", mapping = {'a':normalized_filename,1447 """, mapping = {'a':normalized_filename, 1448 1448 'b':importer, 1449 1449 'c':import_mode, -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r16262 r16266 2217 2217 self.flash(_('Payment ticket created.')) 2218 2218 self.context.writeLogMessage(self,'added: %s' % payment.p_id) 2219 self.redirect(self.url( self.context))2219 self.redirect(self.url(payment)) 2220 2220 return 2221 2221 … … 2256 2256 self.flash(_('Payment ticket created.')) 2257 2257 self.context.writeLogMessage(self,'added: %s' % payment.p_id) 2258 self.redirect(self.url( self.context))2258 self.redirect(self.url(payment)) 2259 2259 return 2260 2260 … … 2291 2291 self.flash(_('Payment ticket created.')) 2292 2292 self.context.writeLogMessage(self,'added: %s' % payment.p_id) 2293 self.redirect(self.url( self.context))2293 self.redirect(self.url(payment)) 2294 2294 return 2295 2295 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r16251 r16266 1018 1018 self.assertMatches('...ticket created...', 1019 1019 self.browser.contents) 1020 self.browser.open(self.payments_path) 1020 1021 ctrl = self.browser.getControl(name='val_id') 1021 1022 value = ctrl.options[0] … … 1127 1128 # Managers can approve the payment 1128 1129 self.assertEqual(len(self.app['accesscodes']['CLR-0']),0) 1129 ctrl = self.browser.getControl(name='val_id')1130 value = ctrl.options[1] # The clearance payment is the second in the table1131 self.browser.getLink(value).click()1132 1130 self.browser.open(self.browser.url + '/approve') 1133 1131 self.assertMatches('...Payment approved...', … … 1154 1152 # Managers can approve the payment 1155 1153 self.assertEqual(len(self.app['accesscodes']['TSC-0']),0) 1156 ctrl = self.browser.getControl(name='val_id')1157 value = ctrl.options[2] # The clearance payment is the third in the table1158 self.browser.getLink(value).click()1159 1154 self.browser.open(self.browser.url + '/approve') 1160 1155 self.assertMatches('...Payment approved...', … … 1182 1177 self.assertMatches('...ticket created...', 1183 1178 self.browser.contents) 1179 self.browser.open(self.payments_path) 1184 1180 ctrl = self.browser.getControl(name='val_id') 1185 1181 value = ctrl.options[0] … … 1196 1192 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 1197 1193 self.browser.getControl("Create ticket").click() 1194 self.browser.open(self.payments_path) 1198 1195 ctrl = self.browser.getControl(name='val_id') 1199 1196 value = ctrl.options[0] … … 1241 1238 self.browser.contents) 1242 1239 self.app['configuration']['2004'].payment_disabled = ['sf_all'] 1240 self.browser.open(self.payments_path) 1243 1241 self.browser.getLink("Add current session payment ticket").click() 1244 1242 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 1281 1279 self.assertMatches('...ticket created...', 1282 1280 self.browser.contents) 1281 self.browser.open(self.payments_path) 1283 1282 ctrl = self.browser.getControl(name='val_id') 1284 1283 value = ctrl.options[0] … … 1316 1315 self.browser.getControl(name="form.p_category").value = ['bed_allocation'] 1317 1316 self.browser.getControl("Create ticket").click() 1318 ctrl = self.browser.getControl(name='val_id')1319 value = ctrl.options[0]1320 self.browser.getLink(value).click()1321 1317 self.browser.open(self.browser.url + '/approve') 1322 1318 # The new HOS-0 pin has been created … … 3203 3199 # Students can't approve the payment 3204 3200 self.assertEqual(len(self.app['accesscodes']['CLR-0']),0) 3201 self.browser.open(self.payments_path) 3205 3202 ctrl = self.browser.getControl(name='val_id') 3206 3203 value = ctrl.options[0] … … 3288 3285 self.assertMatches('...ticket created...', 3289 3286 self.browser.contents) 3287 self.browser.open(self.payments_path) 3290 3288 ctrl = self.browser.getControl(name='val_id') 3291 3289 value = ctrl.options[0] … … 3414 3412 self.assertMatches('...ticket created...', 3415 3413 self.browser.contents) 3414 self.browser.open(self.payments_path) 3416 3415 ctrl = self.browser.getControl(name='val_id') 3417 3416 value = ctrl.options[0] … … 3479 3478 self.assertMatches('...ticket created...', 3480 3479 self.browser.contents) 3480 self.browser.open(self.payments_path) 3481 3481 ctrl = self.browser.getControl(name='val_id') 3482 3482 value = ctrl.options[0] … … 3518 3518 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 3519 3519 self.browser.getControl("Create ticket").click() 3520 self.browser.open(self.payments_path) 3520 3521 ctrl = self.browser.getControl(name='val_id') 3521 3522 value = ctrl.options[0] … … 3575 3576 self.browser.getControl(name="form.p_category").value = ['bed_allocation'] 3576 3577 self.browser.getControl("Create ticket").click() 3578 self.browser.open(self.payments_path) 3577 3579 ctrl = self.browser.getControl(name='val_id') 3578 3580 value = ctrl.options[0] … … 3692 3694 self.assertMatches('...Payment ticket created...', 3693 3695 self.browser.contents) 3696 self.browser.open(self.payments_path) 3694 3697 ctrl = self.browser.getControl(name='val_id') 3695 3698 value = ctrl.options[0] … … 3702 3705 self.browser.getControl(name="form.p_category").value = ['hostel_maintenance'] 3703 3706 self.browser.getControl("Create ticket").click() 3707 self.browser.open(self.payments_path) 3704 3708 ctrl = self.browser.getControl(name='val_id') 3705 3709 value = ctrl.options[1] … … 3760 3764 self.browser.getControl(name="form.p_category").value = ['transcript'] 3761 3765 self.browser.getControl("Create ticket").click() 3766 self.browser.open(self.payments_path) 3762 3767 ctrl = self.browser.getControl(name='val_id') 3763 3768 value = ctrl.options[0]
Note: See TracChangeset for help on using the changeset viewer.