def loadfile(file_name): """ Load motions from a JSON file. """ with open(file_name, 'rb') as fh: data = json.load(fh) load_parties(data.get('parties', {}).values()) load_people(data.get('people', {}).values()) load_motions(data)
def loadpeople(file_name): """ Load people from a JSON file. """ with open(file_name, 'rb') as fh: data = json.load(fh) load_people(data)