def new(self): self.model = plt_model.PltHeader() self.model.childs = [ plt_model.PltStart(), plt_model.PltJobs(), plt_model.PltEnd() ]
def new(self): self.model = plt_model.PltHeader() childs = [] childs.append(plt_model.PltStart()) childs.append(plt_model.PltJobs()) childs.append(plt_model.PltEnd()) self.model.childs = childs