Remove special-casing for missing and single-valued attributes in LDAPUpdate._entry_to_entity

This commit is contained in:
Petr Viktorin 2013-01-28 07:33:51 -05:00 committed by Martin Kosek
parent 6eeb5ecbea
commit 66eaf1220d

View File

@ -246,12 +246,6 @@ class LDAPUpdate:
def _entry_to_entity(self, ent):
entry = ent.copy()
for key,value in entry.iteritems():
if isinstance(value,list) or isinstance(value,tuple):
if len(value) == 0:
entry[key] = ''
elif len(value) == 1:
entry[key] = value[0]
entry.commit()
return entry