include support for lieuxMariage attribute

This commit is contained in:
Frédéric Péters 2016-09-14 14:30:26 +02:00
parent ce036202d5
commit a838ce4679
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,10 @@ class AuthenticAdapter(DefaultAdapter):
# fix street name
attributes['rue'] = attributes['rue'].split('(')[0]
if attributes.get('lieuxMariage'):
# change from list to string
attributes['lieuxMariage'] = '|'.join(attributes.get('lieuxMariage'))
attribute_mapping = [
('commune', 'city'),
('rue', 'street'),
@ -66,6 +70,7 @@ class AuthenticAdapter(DefaultAdapter):
('numero', 'num_house'),
('codePostal', 'zipcode'),
('boite', 'num_box'),
('lieuxMariage', 'wedding_cities'),
]
for nrn_attribute, user_attribute in attribute_mapping:
try: