Changeset 12656
- Timestamp:
- 2 Mar 2015, 17:47:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/payment.py
r12655 r12656 35 35 36 36 def get_payment_providers(): 37 """Get all services of payment gateways registered.37 """Get all payment providers registered. 38 38 """ 39 39 return dict( 40 40 getUtilitiesFor(IPaymentGatewayService) 41 41 ) 42 42 43 grok.global_utility(get_payment_providers, IPaymentGatewayServicesLister) 43 44 class PaymentGatewayServicesLister(grok.GlobalUtility): 45 grok.implements(IPaymentGatewayServicesLister) 46 47 def __call__(self): 48 """Get all services of payment gateways registered. 49 """ 50 return get_payment_providers() 44 51 45 52
Note: See TracChangeset for help on using the changeset viewer.