Example #1
0
def cavity_status():
    """
    use this format to pass status information
    icons can come from this site
    http://materialdesignicons.com/
    remember to add mdi- as prefix
    :return:
    """
    server = get_xml_process()
    status = server.cavities()
    return {
        'type': 'cavity_status',
        'error': status['error'],
        'result': status['result']
    }
Example #2
0
def tf_health_status(force=False):
    """
    use this format to pass status information
    icons can come from this site
    http://materialdesignicons.com/
    remember to add mdi- as prefix
    :param force: if true forces tf_health rescan
    :type force: bool
    :return:
    """
    server = get_xml_process()
    status = server.tf_health(force)
    status.pop('cavities', 0)
    return {
        'type': 'test_fixture_health',
        'error': status['error'],
        'result': status['result']
    }
Example #3
0
def xmlrpc_start():
    server = get_xml_process()
    return server.start()