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

This commit is contained in:
Petr Viktorin authored and Martin Kosek committed 2013-03-01 16:59:45 +01:00
1 parent 6eeb5ecbea
commit 66eaf1220d
1 file changed
-6
-6
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