Ignore:
Timestamp:
12 Mar 2015, 08:36:30 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename contract workflow transition and change messages.

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  
    270270        IWorkflowInfo(maybe_contract).fireTransition('confirm')
    271271    else:
    272         IWorkflowInfo(maybe_contract).fireTransition('discard')
     272        IWorkflowInfo(maybe_contract).fireTransition('abort')
    273273
    274274
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12741 r12747  
    13791379            % contract.contract_id in logcontent)
    13801380        self.assertTrue(
    1381             'INFO - zope.mgr - K1000000 - %s - Submitted for approval' % conid
     1381            'INFO - zope.mgr - K1000000 - %s - Contract submitted' % conid
    13821382            in logcontent)
    13831383        self.assertTrue(
    1384             'INFO - zope.mgr - K1000000 - %s - Approved' % conid
     1384            'INFO - zope.mgr - K1000000 - %s - Contract approved' % conid
    13851385            in logcontent)
    13861386        self.assertTrue(
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/workflow.py

    r12663 r12747  
    199199
    200200    Transition(
    201         transition_id = 'discard',
    202         title = _('Discard payment'),
     201        transition_id = 'abort',
     202        title = _('Abort payment'),
    203203        source = AWAITING,
    204204        condition = NullCondition,
    205         msg = _('Payment discarded'),
     205        msg = _('Payment aborted'),
    206206        destination = CREATED),
    207207
     
    209209        transition_id = 'submit',
    210210        title = _('Submit for approval'),
    211         msg = _('Submitted for approval'),
     211        msg = _('Contract submitted'),
    212212        source = CREATED,
    213213        destination = SUBMITTED),
     
    216216        transition_id = 'confirm',
    217217        title = _('Confirm payment'),
    218         msg = _('Payment and submission confirmed'),
     218        msg = _('Payment made and contract submitted'),
    219219        source = AWAITING,
    220220        destination = SUBMITTED),
     
    222222    Transition(
    223223        transition_id = 'approve',
    224         title = _('Approve'),
    225         msg = _('Approved'),
     224        title = _('Approve contract'),
     225        msg = _('Contract approved'),
    226226        source = SUBMITTED,
    227227        destination = APPROVED),
     
    229229    Transition(
    230230        transition_id = 'reject',
    231         title = _('Reject'),
    232         msg = _('REJECTED'),
     231        title = _('Reject contract'),
     232        msg = _('Contract rejected'),
    233233        source = SUBMITTED,
    234234        destination = REJECTED),
     
    236236    Transition(
    237237        transition_id = 'reset1',
    238         title = _('Reset to initial state'),
     238        title = _('Reset contract to initial state'),
    239239        msg = _('Reset to initial state'),
    240240        source = REJECTED,
     
    271271    )
    272272
    273 PAYMENT_TRANSITIONS = ['await', 'discard', 'confirm']
     273PAYMENT_TRANSITIONS = ['await', 'abort', 'confirm']
    274274
    275275contract_workflow = IkobaWorkflow(CONTRACT_TRANSITIONS)
Note: See TracChangeset for help on using the changeset viewer.