summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-03-12 16:34:22 +0100
committerMartin Kosek <mkosek@redhat.com>2014-06-03 15:55:32 +0200
commit47f473d0cac2e28980c7ecffdbfd480441eab277 (patch)
treef8df1fa5fe9cb24a7ff572e2e73cd9294bb19491 /ipalib/parameters.py
parent93ad23912e3bb73fc3e54d2b6734748a55fc933a (diff)
downloadfreeipa-47f473d0cac2e28980c7ecffdbfd480441eab277.tar.gz
freeipa-47f473d0cac2e28980c7ecffdbfd480441eab277.tar.xz
freeipa-47f473d0cac2e28980c7ecffdbfd480441eab277.zip
Allows to sort non text entries
Part of ticket: IPA should allow internationalized domain names https://fedorahosted.org/freeipa/ticket/3169 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index 33ae182b5..728faee53 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -911,6 +911,9 @@ class Param(ReadOnly):
pass
return self.default
+ def sort_key(self, value):
+ return value
+
json_exclude_attrs = (
'alwaysask', 'autofill', 'cli_name', 'cli_short_name', 'csv',
'sortorder', 'falsehoods', 'truths', 'version',
@@ -1457,6 +1460,8 @@ class Str(Data):
length=self.length,
)
+ def sort_key(self, value):
+ return value.lower()
class IA5Str(Str):
"""