Exemplo n.º 1
0
 def _set_base_selectedSegments(self, value):
     normalized = []
     for i in value:
         if isinstance(i, int):
             i = normalizers.normalizeSegmentIndex(i)
         else:
             i = normalizers.normalizeSegment(i)
         normalized.append(i)
     self._set_selectedSegments(normalized)
Exemplo n.º 2
0
 def _set_base_selectedSegments(self, value):
     normalized = []
     for i in value:
         if isinstance(i, int):
             i = normalizers.normalizeSegmentIndex(i)
         else:
             i = normalizers.normalizeSegment(i)
         normalized.append(i)
     self._set_selectedSegments(normalized)