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

Jan Cholasta jcholast at redhat.com
Tue Dec 2 16:23:43 UTC 2014


Dne 2.12.2014 v 17:01 Tomas Babej napsal(a):
>
> 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.

This wouldn't solve the real problem in this case, which is that we do 
not support one-to-many relationships between objects in the framework 
(and our support for many-to-many relationships is clunky). I plan to 
fix this with <https://fedorahosted.org/freeipa/ticket/3932>.

>
> Updated patch attached.
>


-- 
Jan Cholasta




More information about the Freeipa-devel mailing list