def _validate_type_multipoint(self, field, value): """ Enables validation for `multipoint` data type. :param field: field name. :param value: field value. """ try: MultiPoint(value) except TypeError: self._error(field, "MultiPoint not correct" % value)
def _validate_type_multipoint(self, value): try: MultiPoint(value) return True except TypeError: pass