'Validate integer property.
Returns:
A valid value.
Raises:
BadValueError if value is not an integer or long instance.'

def validate(self, value):

    value = super(IntegerProperty, self).validate(value)
    if (value is None):
        return value
    if ((not isinstance(value, (int, long))) or isinstance(value, bool)):
        raise BadValueError(('Property    %s    must    be    an    int    or    long,    not    a    %s' % (self.name, type(value).__name__)))
    if ((value < (-9223372036854775808)) or (value > 9223372036854775807)):
        raise BadValueError(('Property    %s    must    fit    in    64    bits' % self.name))
    return value
