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