import deputy degrees

This commit is contained in:
Frédéric Péters 2011-10-19 19:20:50 +02:00
parent 313c2adbb6
commit 56e5b84a92
1 changed files with 2 additions and 0 deletions

View File

@ -340,6 +340,8 @@ 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('parlFormation') is not None:
object.degrees = d.find('parlFormation').text
pic_filename = d.find('parlPicture').text
pic_filepath = os.path.join(base_picdir, pic_filename)
if os.path.exists(pic_filepath):