Created
March 17, 2019 13:12
-
-
Save talfco/9dd4e43a49504dfa4ec4481725e8b72d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _add_person_record(self, dict): | |
person = { | |
'id': self._get_id(dict), | |
'active': self._get_active(dict), | |
'lastName': self._get_last_name(dict), | |
'firstName': self._get_first_name(dict), | |
'middleName':self._get_middle_name(dict), | |
'gender': self._get_gender(dict), | |
'party': self._get_party(dict), | |
'council' : self._get_council(dict), | |
'electedDate': self._get_elected_date(dict), | |
'birthDate': self._get_birthdate(dict), | |
'maritalStatus': self._get_marital_status(dict), | |
'title': self._get_title(dict), | |
'statePostalCode': self._get_state_postal_code(dict), | |
'district': self._get_district(dict), | |
'zip': self._get_zip(dict), | |
'townName': self._get_town_name(dict) | |
} | |
self._members.append(person) | |
# Build up our Lookup Directory | |
rec = [] | |
if self._get_first_name(dict) != "": | |
rec.append(self._get_first_name(dict)) | |
if self._get_middle_name(dict) != "": | |
rec.append(self._get_middle_name(dict)) | |
if self._get_last_name(dict) != "": | |
rec.append(self._get_last_name(dict)) | |
self._nameLookupDirectory.add_person_to_lookup_directory( self._get_id(dict), tuple(rec)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment