ability to format dicts

This commit is contained in:
Romain Bignon 2012-05-04 16:27:49 +02:00
commit f7214e5e62
5 changed files with 51 additions and 30 deletions

View file

@ -82,9 +82,7 @@ class TableFormatter(IFormatter):
return s
def format_obj(self, obj, alias):
item = self.to_dict(obj)
def format_dict(self, item):
if self.keys is None:
self.keys = item.keys()
self.queue.append(item.values())