jp (common): various Table fixes:
- renamed fromDict to more accurate fromListDict - fixed handling of None filter in fromListDict - fixes show_header when no header exist - escape headers when using namedtuple, so it won't fail
This commit is contained in:
parent
1d91db6f2c
commit
da3b7b5fea
1 changed files with 20 additions and 12 deletions
|
|
@ -642,7 +642,7 @@ class ShareList(base.CommandBase):
|
|||
show_header = True
|
||||
keys = ("name", "type", "size", "file_hash")
|
||||
headers = ("name", "type", "size", "hash")
|
||||
table = common.Table.fromDict(
|
||||
table = common.Table.fromListDict(
|
||||
self.host,
|
||||
files_data,
|
||||
keys=keys,
|
||||
|
|
|
|||
Loading…
Reference in a new issue