Fix output of summary and embedded dictionaries

Summaries were appearing as "Gettext(...")

Embedded dictionaries, such as group membership failures, didn't have
labels so were basically just being dumped.
This commit is contained in:
Rob Crittenden 2010-04-26 17:40:15 -04:00 committed by Jason Gerard DeRose
parent cef30893ec
commit 2f50668753

View File

@ -876,11 +876,11 @@ class Command(HasParam):
if isinstance(outp, ListOfEntries):
textui.print_entries(result, order, labels, print_all)
elif isinstance(result, (tuple, list)):
textui.print_entries(result)
textui.print_entries(result, order, labels, print_all)
elif isinstance(outp, Entry):
textui.print_entry(result, order, labels, print_all)
elif isinstance(result, dict):
textui.print_entry(result)
textui.print_entry(result, order, labels, print_all)
elif isinstance(result, unicode):
if o == 'summary':
textui.print_summary(result)
@ -891,7 +891,7 @@ class Command(HasParam):
# success or failure. Ignore these.
pass
elif isinstance(result, int):
textui.print_count(result, '%s %%d' % self.output[o].doc)
textui.print_count(result, '%s %%d' % unicode(self.output[o].doc))
class LocalOrRemote(Command):