From 56e5b84a92ea8696482a0628e162eedb5fe9fc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 19 Oct 2011 19:20:50 +0200 Subject: [PATCH] import deputy degrees --- themis/libellioimport/migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themis/libellioimport/migration.py b/themis/libellioimport/migration.py index 4b6baa0..2dd878f 100644 --- a/themis/libellioimport/migration.py +++ b/themis/libellioimport/migration.py @@ -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):