def __call__(self, field_data, all_data):
        # Try to make the value numeric. If this fails, we assume another 
        # validator will catch the problem.
        try:
            val = float(field_data)
        except ValueError:
            return
            
        # Now validate
        if self.lower and self.upper and (val < self.lower or val > self.upper):
            raise ValidationError(self.error_message)
        elif self.lower and val < self.lower:
            raise ValidationError(self.error_message)
        elif self.upper and val > self.upper:
            raise ValidationError(self.error_message)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/core/validators.py/NumberIsInRange.__call__/original