def _has_changed(self, initial, data): if (initial is None) or (not isinstance(initial, (tuple, list))): initial = [u""] * len(data) for widget, initial, data in zip(self.vector_layers, initial, data): if utils.get_geos(initial) != utils.get_geos(data): return True return False
def _has_changed(self, initial, data): if (initial is None) or (not isinstance(initial, (tuple, list))): initial = [u''] * len(data) for widget, initial, data in zip(self.vector_layers, initial, data): if utils.get_geos(initial) != utils.get_geos(data): return True return False