Changeset 12717
- Timestamp:
- 10 Mar 2015, 15:16:01 (10 years ago)
- Location:
- main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/contracts.py
r12716 r12717 265 265 grok.implements(IPayableFinder) 266 266 267 def get_ item_by_id(self, contract_id):267 def get_payable_by_id(self, contract_id): 268 268 catalog = getUtility(ICatalog, 'contracts_catalog') 269 269 result = catalog.searchResults( -
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/tests/test_contract.py
r12716 r12717 171 171 app['mycontract'] = contract # trigger cataloging 172 172 finder = ContractFinder() 173 result = finder.get_ item_by_id('CON1234')173 result = finder.get_payable_by_id('CON1234') 174 174 self.assertTrue(result is contract) 175 175 … … 179 179 app['mycontract'] = contract # trigger cataloging 180 180 finder = ContractFinder() 181 result = finder.get_ item_by_id('Not-a-valid-id')181 result = finder.get_payable_by_id('Not-a-valid-id') 182 182 self.assertTrue(result is None) -
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py
r12716 r12717 147 147 """Finds payables. 148 148 """ 149 def get_ item_by_id(item_id):149 def get_payable_by_id(item_id): 150 150 """Get an item by its Id, or none. 151 151 """
Note: See TracChangeset for help on using the changeset viewer.