def __repr__(self): out = "" columns = self.__producer__.columns if columns: table = TextTable(columns, border=True) table.append([getattr(self, column) for column in columns]) out = repr(table) return out
def __repr__(self): out = "" if self.columns: table = TextTable([None] + self.columns, border=True) for i, record in enumerate(self.records): table.append([i + 1] + list(record)) out = repr(table) return out