[Freeipa-devel] [PATCH] 051 Search facets show translated boolean values
Endi Sukma Dewata
edewata at redhat.com
Mon Dec 5 17:27:33 UTC 2011
On 12/5/2011 9:37 AM, Petr Vobornik wrote:
> Created format method for getting translated messages for boolean values
> - IPA.boolean_column_format.
>
> Used in hosts, sudo rules, hbac rules.
>
> https://fedorahosted.org/freeipa/ticket/2027
The patch works, so it's ACKed. There are a few suggestions but they can
be done later:
1. It might be better to name the function IPA.boolean_format because we
can use it for other things too, not just inside a column.
2. The value can be normalized using toLowerCase() before comparison.
3. If the value doesn't match true/false it can return the original
value instead of empty string.
--
Endi S. Dewata
More information about the Freeipa-devel
mailing list