Unverified Commit b6d71028 authored by Cédric Bonhomme's avatar Cédric Bonhomme
Browse files

Removed useless module.

parent 2a038796
$(document).ready(function() {
$('#ArrowUp').mousedown(function() {
......@@ -18,40 +18,27 @@ __copyright__ = "Copyright (c) 2014-2015 Cédric Bonhomme"
__license__ = ""
import time
from flask import render_template, current_app, request, session, \
url_for, redirect, g, send_from_directory, make_response, abort, Markup
from flask.ext.login import LoginManager, login_user, logout_user, \
login_required, current_user, AnonymousUserMixin
from flask import render_template, request, session, url_for, redirect
from ev3.ev3dev import Motor
import conf
from web.decorators import to_response
from web.lib import movements
from web import app
from web.lib import movements
from web import right_wheel, left_wheel, button, ir_sensor, color_sensor
login_manager = LoginManager(app)
login_manager.login_view = 'index'
login_manager.login_message = 'Please log in to access this page.'
login_manager.login_message_category = 'danger'
def authentication_failed(e):
flash('You do not have enough rights.', 'danger')
return redirect(url_for('index'))
def authentication_required(e):
flash('Authenticated required.', 'info')
return redirect(url_for('index'))
def load_user(id):
# Return an instance of the User model
@app.route('/move/<direction>', methods=['GET'])
@app.route('/move/<direction>/<speed>', methods=['GET'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment