Example #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)
Example #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)
Example #3
0
def loadparties(file_name):
    """ Load parties from a JSON file. """
    with open(file_name, 'rb') as fh:
        data = json.load(fh)
        load_parties(data)
Example #4
0
def loadparties(file_name):
    """ Load parties from a JSON file. """
    with open(file_name, 'rb') as fh:
        data = json.load(fh)
        load_parties(data)