示例#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)
示例#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)
示例#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)
示例#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)