def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def serialize(self):
        s = []
        for v in self:
            if isinstance(v, BaseConfig):
                v = v.serialize()
            s.append(v)
        return s