Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EV3WebController
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Science Festival 2015
EV3WebController
Commits
b6d71028
Unverified
Commit
b6d71028
authored
Nov 08, 2015
by
Cédric Bonhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed useless module.
parent
2a038796
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
web/static/js/ev3web.js
web/static/js/ev3web.js
+0
-1
web/views/views.py
web/views/views.py
+2
-15
No files found.
web/static/js/ev3web.js
View file @
b6d71028
$
(
document
).
ready
(
function
()
{
$
(
'
#ArrowUp
'
).
mousedown
(
function
()
{
...
...
web/views/views.py
View file @
b6d71028
...
...
@@ -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'
@
app
.
errorhandler
(
403
)
def
authentication_failed
(
e
):
flash
(
'You do not have enough rights.'
,
'danger'
)
return
redirect
(
url_for
(
'index'
))
@
app
.
errorhandler
(
401
)
def
authentication_required
(
e
):
flash
(
'Authenticated required.'
,
'info'
)
return
redirect
(
url_for
(
'index'
))
@
login_manager
.
user_loader
def
load_user
(
id
):
# Return an instance of the User model
pass
@
app
.
route
(
'/move/<direction>'
,
methods
=
[
'GET'
])
@
app
.
route
(
'/move/<direction>/<speed>'
,
methods
=
[
'GET'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment