def _CheckFacetValueLimit(value_limit):
 if (value_limit is None):
  return None
 else:
  return _CheckInteger(value_limit, 'facet_value_limit', zero_ok=False, upper_bound=MAXIMUM_FACET_VALUES_TO_RETURN)

def _CheckFacetValueLimit ( value_limit ) : if ( value_limit is None ) : return None else : return _CheckInteger ( value_limit , 'facet_value_limit' , zero_ok = False , upper_bound = MAXIMUM_FACET_VALUES_TO_RETURN )
checks the facet value limit is an integer within range .