6957: support gender in vcard import

forgotten merge cleanup

svn: r22900
This commit is contained in:
Vassilii Khachaturov 2013-08-21 18:54:05 +00:00
parent f92f5d08bf
commit 09d16526e9

View File

@ -521,9 +521,9 @@ class VCardParser(object):
gender_value = gender_value.upper() gender_value = gender_value.upper()
gender_value = gender_value[0] gender_value = gender_value[0]
if gender_value == 'M': if gender_value == 'M':
gender = gen.lib.Person.MALE gender = Person.MALE
elif gender_value == 'F': elif gender_value == 'F':
gender = gen.lib.Person.FEMALE gender = Person.FEMALE
else: else:
return return
self.person.set_gender(gender) self.person.set_gender(gender)