def _validate_db_int(**kwargs):
 max_int = ((2 ** 31) - 1)
 for (param_key, param_value) in kwargs.items():
  if (param_value and (param_value > max_int)):
   msg = (_("'%(param)s' value out of range, must not exceed %(max)d.") % {'param': param_key, 'max': max_int})
   raise exception.Invalid(msg)

def _validate_db_int ( ** kwargs ) : max_int = ( ( 2 ** 31 ) - 1 ) for ( param_key , param_value ) in kwargs . items ( ) : if ( param_value and ( param_value > max_int ) ) : msg = ( _ ( "'%(param)s' value out of range, must not exceed %(max)d." ) % { 'param' : param_key , 'max' : max_int } ) raise exception . Invalid ( msg )
make sure that all arguments are less than or equal to 2 ** 31 - 1 .