Ignore:
Timestamp:
2 Mar 2015, 17:47:38 (10 years ago)
Author:
uli
Message:

We need a global util that gets data after startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/payment.py

    r12655 r12656  
    3535
    3636def get_payment_providers():
    37     """Get all services of payment gateways registered.
     37    """Get all payment providers registered.
    3838    """
    3939    return dict(
    4040        getUtilitiesFor(IPaymentGatewayService)
    41         )
     41    )
    4242
    43 grok.global_utility(get_payment_providers, IPaymentGatewayServicesLister)
     43
     44class 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()
    4451
    4552
Note: See TracChangeset for help on using the changeset viewer.