def fill_element(self, e): PortData.fill_element(self, e) e["type"] = self.TYPE_NAME e["path"] = self._path e["partition"] = self._partition e["start"] = self._start e["size"] = self._size return e
def fill_element(self, e): PortData.fill_element(self, e) e["type"] = self.TYPE_NAME e["path"] = self._path e["start"] = self._start e["size"] = self._size if self._seek_pos >= 0: e["seek_pos"] = self._seek_pos return e
def fill_element(self, e): PortData.fill_element(self, e) e["type"] = self.TYPE_NAME e["start"] = self._start e["size"] = self._size l = e.create_list() for src in self._sources: pe = e.create_element() l += [src.fill_element(pe)] e["sources"] = l return e