def get_price_infos(context, products, quantity=1):
 (mod, ctx) = _get_module_and_context(context)
 prices = mod.get_price_infos(ctx, products, quantity)
 for module in get_discount_modules():
  prices = module.discount_prices(ctx, products, prices)
 return prices

def get_price_infos ( context , products , quantity = 1 ) : ( mod , ctx ) = _get_module_and_context ( context ) prices = mod . get_price_infos ( ctx , products , quantity ) for module in get_discount_modules ( ) : prices = module . discount_prices ( ctx , products , prices ) return prices
get priceinfo objects for a bunch of products .