Ignore:
Timestamp:
10 Mar 2015, 15:16:01 (10 years ago)
Author:
uli
Message:

Avoid paymentitem mismatch.

Location:
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/contracts.py

    r12716 r12717  
    265265    grok.implements(IPayableFinder)
    266266
    267     def get_item_by_id(self, contract_id):
     267    def get_payable_by_id(self, contract_id):
    268268        catalog = getUtility(ICatalog, 'contracts_catalog')
    269269        result = catalog.searchResults(
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/tests/test_contract.py

    r12716 r12717  
    171171        app['mycontract'] = contract  # trigger cataloging
    172172        finder = ContractFinder()
    173         result = finder.get_item_by_id('CON1234')
     173        result = finder.get_payable_by_id('CON1234')
    174174        self.assertTrue(result is contract)
    175175
     
    179179        app['mycontract'] = contract  # trigger cataloging
    180180        finder = ContractFinder()
    181         result = finder.get_item_by_id('Not-a-valid-id')
     181        result = finder.get_payable_by_id('Not-a-valid-id')
    182182        self.assertTrue(result is None)
Note: See TracChangeset for help on using the changeset viewer.