add import of other mandates and profession

This commit is contained in:
Frédéric Péters 2011-11-23 11:30:13 +01:00
parent 163cb37fb2
commit efee9ad1a6
1 changed files with 4 additions and 0 deletions

View File

@ -341,8 +341,12 @@ class ImportDeputies(BrowserView):
object.birthplace = d.find('parlLocBirthDay').text
object.polgroup = RelationValue(self.get_polgroup_intid(
polgroups.get(d.find('grpPolId').text)))
if d.find('parlProfession') is not None:
object.profession = d.find('parlProfession').text
if d.find('parlFormation') is not None:
object.degrees = d.find('parlFormation').text
if d.find('parlFunctions') is not None:
object.mandates = d.find('parlFunctions').text
if not object.private_address:
object.private_address = Address()
if not object.work_address: