Example #1
0
def test_connection():
    '''This takes the function from fix_connection_test to send a connection to the BME server waits 3 seconds to
        allow connection to complete before refreshing the page
            Returns:
            A new index page is requested to show the updated server status
    '''
    fix_connection.connect_client('FIXT-1.1')
    time.sleep(3)
    return render_template('index.html',
                           connection_status=fix_connection.isConnectedText())
Example #2
0
def access():
    return render_template('access.html',
                           connection_status=fix_connection.isConnectedText())
Example #3
0
def new_order():
    return render_template('new_order.html',
                           connection_status=fix_connection.isConnectedText())
Example #4
0
def orders():
    return render_template('orders.html',
                           connection_status=fix_connection.isConnectedText())
Example #5
0
def index():
    return render_template('index.html',
                           connection_status=fix_connection.isConnectedText())