Changeset 12747 for main/waeup.ikoba/trunk
- Timestamp:
- 12 Mar 2015, 08:36:30 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/contracts.py
r12741 r12747 270 270 IWorkflowInfo(maybe_contract).fireTransition('confirm') 271 271 else: 272 IWorkflowInfo(maybe_contract).fireTransition(' discard')272 IWorkflowInfo(maybe_contract).fireTransition('abort') 273 273 274 274 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12741 r12747 1379 1379 % contract.contract_id in logcontent) 1380 1380 self.assertTrue( 1381 'INFO - zope.mgr - K1000000 - %s - Submitted for approval' % conid1381 'INFO - zope.mgr - K1000000 - %s - Contract submitted' % conid 1382 1382 in logcontent) 1383 1383 self.assertTrue( 1384 'INFO - zope.mgr - K1000000 - %s - Approved' % conid1384 'INFO - zope.mgr - K1000000 - %s - Contract approved' % conid 1385 1385 in logcontent) 1386 1386 self.assertTrue( -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/workflow.py
r12663 r12747 199 199 200 200 Transition( 201 transition_id = ' discard',202 title = _(' Discardpayment'),201 transition_id = 'abort', 202 title = _('Abort payment'), 203 203 source = AWAITING, 204 204 condition = NullCondition, 205 msg = _('Payment discarded'),205 msg = _('Payment aborted'), 206 206 destination = CREATED), 207 207 … … 209 209 transition_id = 'submit', 210 210 title = _('Submit for approval'), 211 msg = _(' Submitted for approval'),211 msg = _('Contract submitted'), 212 212 source = CREATED, 213 213 destination = SUBMITTED), … … 216 216 transition_id = 'confirm', 217 217 title = _('Confirm payment'), 218 msg = _('Payment and submission confirmed'),218 msg = _('Payment made and contract submitted'), 219 219 source = AWAITING, 220 220 destination = SUBMITTED), … … 222 222 Transition( 223 223 transition_id = 'approve', 224 title = _('Approve '),225 msg = _(' Approved'),224 title = _('Approve contract'), 225 msg = _('Contract approved'), 226 226 source = SUBMITTED, 227 227 destination = APPROVED), … … 229 229 Transition( 230 230 transition_id = 'reject', 231 title = _('Reject '),232 msg = _(' REJECTED'),231 title = _('Reject contract'), 232 msg = _('Contract rejected'), 233 233 source = SUBMITTED, 234 234 destination = REJECTED), … … 236 236 Transition( 237 237 transition_id = 'reset1', 238 title = _('Reset to initial state'),238 title = _('Reset contract to initial state'), 239 239 msg = _('Reset to initial state'), 240 240 source = REJECTED, … … 271 271 ) 272 272 273 PAYMENT_TRANSITIONS = ['await', ' discard', 'confirm']273 PAYMENT_TRANSITIONS = ['await', 'abort', 'confirm'] 274 274 275 275 contract_workflow = IkobaWorkflow(CONTRACT_TRANSITIONS)
Note: See TracChangeset for help on using the changeset viewer.