Re: [Freeipa-devel] [PATCH] Fix output of commands, that do not return entries.

2010-03-26 Thread Rob Crittenden
Pavel Zůna wrote: Rob Crittenden wrote: Pavel Zůna wrote: Pavel Zůna wrote: This patch fixes Command.output_for_cli for the env plugin. Before we assumed, that a list/tuple is always a list of entries and a dict is always an entry. Still, this solution isn't perfect. I think, that in the fu

Re: [Freeipa-devel] [PATCH] Fix output of commands, that do not return entries.

2010-03-24 Thread Pavel Zůna
Rob Crittenden wrote: Pavel Zůna wrote: Pavel Zůna wrote: This patch fixes Command.output_for_cli for the env plugin. Before we assumed, that a list/tuple is always a list of entries and a dict is always an entry. Still, this solution isn't perfect. I think, that in the future, we should al

Re: [Freeipa-devel] [PATCH] Fix output of commands, that do not return entries.

2010-03-24 Thread Rob Crittenden
Pavel Zůna wrote: Pavel Zůna wrote: This patch fixes Command.output_for_cli for the env plugin. Before we assumed, that a list/tuple is always a list of entries and a dict is always an entry. Still, this solution isn't perfect. I think, that in the future, we should allow Output subclasses t

Re: [Freeipa-devel] [PATCH] Fix output of commands, that do not return entries.

2010-03-24 Thread Pavel Zůna
Pavel Zůna wrote: This patch fixes Command.output_for_cli for the env plugin. Before we assumed, that a list/tuple is always a list of entries and a dict is always an entry. Still, this solution isn't perfect. I think, that in the future, we should allow Output subclasses to control the way w

[Freeipa-devel] [PATCH] Fix output of commands, that do not return entries.

2010-03-24 Thread Pavel Zůna
This patch fixes Command.output_for_cli for the env plugin. Before we assumed, that a list/tuple is always a list of entries and a dict is always an entry. Still, this solution isn't perfect. I think, that in the future, we should allow Output subclasses to control the way we output values in