From 8879ee173ec6814da701464c562471a3c8c5d846 Mon Sep 17 00:00:00 2001 From: "rcritten@redhat.com" Date: Thu, 23 Aug 2007 09:44:00 -0400 Subject: Handle optional arguments by using the value __NONE__ over XML-RPC. rpcclient.py must call XML-RPC functions with all arguments. Removed encode_args and decode_args. They were the source of most of the argument pain. Now opts is alwyas appended to the end of the arguments so MUST be the last argument in any server-side function (can be None) Allow the User object to handle unicode data Small fixes to command-line tools to be friendlier Broke out get_user() into get_user_by_dn() and get_user_by_uid() Need to request more than just 'nsAccountLock' attribute when trying to see if a user is already marked deleted. If it is blank the record coming back is empty. Add 'uid' to the list to guarantee something coming back (dn is handled specially) Added user_container attribute to get_user_* and add_user so the caller can specify where in the tree the user will be searched for/added. Added global default value for user_container --- ipa-python/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipa-python/user.py') diff --git a/ipa-python/user.py b/ipa-python/user.py index dd0afb57..9d547e80 100644 --- a/ipa-python/user.py +++ b/ipa-python/user.py @@ -33,7 +33,7 @@ class User: if isinstance(entrydata,tuple): self.dn = entrydata[0] self.data = ldap.cidict.cidict(entrydata[1]) - elif isinstance(entrydata,str): + elif isinstance(entrydata,str) or isinstance(entrydata,unicode): self.dn = entrydata self.data = ldap.cidict.cidict() elif isinstance(entrydata,dict): -- cgit