diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-03-27 14:04:00 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-04-18 14:59:20 +0200 |
commit | 4314d02fbf9ef1cb9543ecf76a8d22e79d250214 (patch) | |
tree | 8c6ac601e881712e8cf7c25fce420026a3762553 /ipalib/plugins/delegation.py | |
parent | c644b47492e22370bc71f57e5ac46b50f9b4e247 (diff) | |
download | freeipa-4314d02fbf9ef1cb9543ecf76a8d22e79d250214.tar.gz freeipa-4314d02fbf9ef1cb9543ecf76a8d22e79d250214.tar.xz freeipa-4314d02fbf9ef1cb9543ecf76a8d22e79d250214.zip |
Allow primary keys to use different type than unicode.
Also return list of primary keys instead of a single unicode CSV value from
LDAPDelete-based commands.
This introduces a new capability 'primary_key_types' for backward
compatibility with old clients.
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipalib/plugins/delegation.py')
-rw-r--r-- | ipalib/plugins/delegation.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/plugins/delegation.py b/ipalib/plugins/delegation.py index bab76ccbc..93129fbc4 100644 --- a/ipalib/plugins/delegation.py +++ b/ipalib/plugins/delegation.py @@ -24,7 +24,7 @@ from ipalib.request import context from ipalib import api, crud, errors from ipalib import output from ipalib import Object, Command -from ipalib.plugins.baseldap import gen_pkey_only_option +from ipalib.plugins.baseldap import gen_pkey_only_option, pkey_to_value __doc__ = _(""" Group to Group Delegation @@ -141,7 +141,7 @@ class delegation_add(crud.Create): return dict( result=result, - value=aciname, + value=pkey_to_value(aciname, kw), ) api.register(delegation_add) @@ -159,7 +159,7 @@ class delegation_del(crud.Delete): self.obj.postprocess_result(result) return dict( result=True, - value=aciname, + value=pkey_to_value(aciname, kw), ) api.register(delegation_del) @@ -178,7 +178,7 @@ class delegation_mod(crud.Update): return dict( result=result, - value=aciname, + value=pkey_to_value(aciname, kw), ) api.register(delegation_mod) @@ -220,7 +220,7 @@ class delegation_show(crud.Retrieve): self.obj.postprocess_result(result) return dict( result=result, - value=aciname, + value=pkey_to_value(aciname, kw), ) api.register(delegation_show) |