diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-10-04 12:20:00 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-10-04 12:20:00 -0700 |
commit | 99c793e2ad2cbe351650970ae5baad8a93c5a817 (patch) | |
tree | b8ab18a3c4af87ae1294305bbe38a841b9e084bb /ipa-python/entity.py | |
parent | 2ac1b39f42e0e67fc42198abe79a809508865054 (diff) | |
download | freeipa-99c793e2ad2cbe351650970ae5baad8a93c5a817.tar.gz freeipa-99c793e2ad2cbe351650970ae5baad8a93c5a817.tar.xz freeipa-99c793e2ad2cbe351650970ae5baad8a93c5a817.zip |
Fixes none values in first/last name to display properly.
Diffstat (limited to 'ipa-python/entity.py')
-rw-r--r-- | ipa-python/entity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-python/entity.py b/ipa-python/entity.py index 2f0629cd..7afc3e63 100644 --- a/ipa-python/entity.py +++ b/ipa-python/entity.py @@ -79,9 +79,9 @@ class Entity: """Get the list (array) of values for the attribute named name""" return self.data.get(name) - def getValue(self,name): + def getValue(self,name,default=None): """Get the first value for the attribute named name""" - value = self.data.get(name,[None]) + value = self.data.get(name,default) if isinstance(value,list) or isinstance(value,tuple): return value[0] else: |