Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
def loadpeople(file_name):
    """ Load people from a JSON file. """
    with open(file_name, 'rb') as fh:
        data = json.load(fh)
        load_people(data)
Beispiel #4
0
def loadpeople(file_name):
    """ Load people from a JSON file. """
    with open(file_name, 'rb') as fh:
        data = json.load(fh)
        load_people(data)