def _kb_readout(request, readout_slug, readouts, locale=None, mode=None, product=None):
 if (readout_slug not in readouts):
  raise Http404
 return readouts[readout_slug](request, locale=locale, mode=mode, product=product)

def _kb_readout ( request , readout_slug , readouts , locale = None , mode = None , product = None ) : if ( readout_slug not in readouts ) : raise Http404 return readouts [ readout_slug ] ( request , locale = locale , mode = mode , product = product )
instantiate and return the readout with the given slug .