summaryrefslogtreecommitdiffstats
path: root/ipa-python/user.py
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-08-16 15:05:36 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-08-16 15:05:36 -0700
commit0ddf0699a5dd47c575a7e757f38819c8c74340f9 (patch)
tree5094c907631919f38633ac38ade2af3d80b38e2b /ipa-python/user.py
parent05f6a22110f058c089e4e9cd6d538264f439f5d2 (diff)
downloadfreeipa-0ddf0699a5dd47c575a7e757f38819c8c74340f9.tar.gz
freeipa-0ddf0699a5dd47c575a7e757f38819c8c74340f9.tar.xz
freeipa-0ddf0699a5dd47c575a7e757f38819c8c74340f9.zip
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].
Diffstat (limited to 'ipa-python/user.py')
-rw-r--r--ipa-python/user.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipa-python/user.py b/ipa-python/user.py
index 3c925bfb3..ecbd2845c 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