def setheaders(self): self.master.view_grideditor( grideditor.SetHeadersEditor( self.master, self.master.options.setheaders, self.master.options.setter("setheaders") ) )
def setheaders(self): data = [] for d in self.master.options.setheaders: if isinstance(d, str): data.append(setheaders.parse_setheader(d)) else: data.append(d) self.master.view_grideditor( grideditor.SetHeadersEditor( self.master, data, self.master.options.setter("setheaders")))