Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)