def _CheckInteger(value, name, zero_ok=True, upper_bound=None):
 datastore_types.ValidateInteger(value, name, ValueError, empty_ok=True, zero_ok=zero_ok)
 if ((upper_bound is not None) and (value > upper_bound)):
  raise ValueError(('%s, %d must be <= %d' % (name, value, upper_bound)))
 return value

def _CheckInteger ( value , name , zero_ok = True , upper_bound = None ) : datastore_types . ValidateInteger ( value , name , ValueError , empty_ok = True , zero_ok = zero_ok ) if ( ( upper_bound is not None ) and ( value > upper_bound ) ) : raise ValueError ( ( '%s, %d must be <= %d' % ( name , value , upper_bound ) ) ) return value
checks whether value is an integer between the lower and upper bounds .