Beispiel #1
0
 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
Beispiel #2
0
 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