From 4314d02fbf9ef1cb9543ecf76a8d22e79d250214 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 27 Mar 2014 14:04:00 +0100 Subject: 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 --- ipalib/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 067d78089..4250aaf54 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -363,7 +363,8 @@ class textui(backend.Backend): label = labels.get(key, key) flag = flags.get(key, []) value = entry[key] - if 'suppress_empty' in flag and value in [u'', '', [], None]: + if ('suppress_empty' in flag and + value in [u'', '', (), [], None]): continue if isinstance(value, dict): if frontend.entry_count(value) == 0: -- cgit