def _validate_type_point(self, field, value): """ Enables validation for `point` data type. :param field: field name. :param value: field value. """ try: Point(value) except TypeError as e: self._error(field, "Point not correct %s: %s" % (value, e))
def _validate_type_point(self, value): try: Point(value) return True except TypeError: pass