def getColumns(self): result = [] for table in self.tables: result += [ idlabel.IDLabel((table, c), c) for c in table.getColumns() if self.columnfilter(table, c) ] return result
def getColumns(self): if not (self.colnames or self.rows): return [] colnames = self.colnames or range(len(toolkit.head(self.rows))) return [ idlabel.IDLabel(i, colname) for (i, colname) in enumerate(colnames) ]