def get_checkout_phases_for_service(checkout_process, service):
 classes = get_provide_objects('front_service_checkout_phase_provider')
 for provider_cls in classes:
  provider = provider_cls()
  assert isinstance(provider, ServiceCheckoutPhaseProvider)
  phase = provider.get_checkout_phase(checkout_process, service)
  if phase:
   assert isinstance(phase, CheckoutPhaseViewMixin)
   (yield phase)

def get_checkout_phases_for_service ( checkout_process , service ) : classes = get_provide_objects ( 'front_service_checkout_phase_provider' ) for provider_cls in classes : provider = provider_cls ( ) assert isinstance ( provider , ServiceCheckoutPhaseProvider ) phase = provider . get_checkout_phase ( checkout_process , service ) if phase : assert isinstance ( phase , CheckoutPhaseViewMixin ) ( yield phase )
get checkout phases for given service .