Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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