[Freeipa-devel] [PATCH 0289] hosts: Display assigned ID view by default in host-find and show

Tomas Babej tbabej at redhat.com
Tue Dec 2 16:01:59 UTC 2014


On 12/02/2014 04:14 PM, Jan Cholasta wrote:
> Hi,
>
> Dne 2.12.2014 v 15:43 Tomas Babej napsal(a):
>> Hi,
>>
>> Makes ipaassignedidview a default attribute and takes care about the
>> conversion from the DN to the proper ID view name.
>>
>> https://fedorahosted.org/freeipa/ticket/4774
>
> Since you are converting the value from DN to primary key string, the
> type of the ipassignedview param should be changed to Str, for
> consistency with existing code.
>
> Honza
>

I see. Actually during the development, I craved for simple
output_normalizer option in the Param itself, which would apply the
output normalization funtion after the post_callback,
instead of having to mangle the entry_attrs in the post callback of each
command (and could potentionally apply on the client). Would there a be
not-so-hard way to do this in the framework? My understanding is that
Output classes are quite decoupled from the Params they resulted from,
and at the point we're printing the information via the textui, we're no
longer aware what Param instance it originated from.

Updated patch attached.

-- 
Tomas Babej
Associate Software Engineer | Red Hat | Identity Management
RHCE | Brno Site | IRC: tbabej | freeipa.org 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-tbabej-0289-2-hosts-Display-assigned-ID-view-by-default-in-host-fi.patch
Type: text/x-patch
Size: 6846 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20141202/7b920b0c/attachment.bin>


More information about the Freeipa-devel mailing list