From 0ddf0699a5dd47c575a7e757f38819c8c74340f9 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Thu, 16 Aug 2007 15:05:36 -0700 Subject: Add update user to gui. Fix fields to be lowercase in web gui (server now returns them lowercase). Fix ipaclient.py to refer to lowercase fields when adding a user. Fix user.getValue() to check isinstance(value,list) instead of value[0]. --- ipa-python/user.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ipa-python/user.py') diff --git a/ipa-python/user.py b/ipa-python/user.py index 3c925bfb..ecbd2845 100644 --- a/ipa-python/user.py +++ b/ipa-python/user.py @@ -58,9 +58,7 @@ class User: def getValue(self,name): """Get the first value for the attribute named name""" value = self.data.get(name,[None]) - if (len(value) < 1): - return value - if isinstance(value[0],list) or isinstance(value[0],tuple): + if isinstance(value,list) or isinstance(value,tuple): return value[0] else: return value -- cgit