Skip to content
Snippets Groups Projects
Commit 8a2f88bb authored by jkerdreu's avatar jkerdreu
Browse files

Cleanup

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1911 b32b6428-25c9-4566-ad07-03861ab6144f
parent 7b3498e0
No related branches found
No related tags found
No related merge requests found
......@@ -34,28 +34,6 @@ def info():
@route('/devices/<addr>')
@view('device.mako')
def get_device(addr):
r = {"title" : "device %s" % addr}
dev = xaal_core.get_device(addr)
if dev:
r.update({"dev" : dev})
if dev.devtype == 'thermometer.basic':
r.update({"data_is" : "thermometer"})
r.update({"value" : dev.attributes['temperature']})
if dev.devtype == 'hygrometer.basic':
r.update({"data_is" : "hygrometer"})
r.update({"value" : dev.attributes['humidity']})
if dev.devtype == 'powerrelay.basic':
r.update({"data_is" : "powerrelay"})
r.update({"value" : dev.attributes['power']})
return r
@route('/devices')
@view('devices.mako')
def get_device():
......@@ -65,8 +43,6 @@ def get_device():
return r
@route('/generic/<addr>')
@view('generic.mako')
def get_device(addr):
......@@ -77,20 +53,6 @@ def get_device(addr):
return r
@route('/test0')
@view('test0.mako')
def test0():
r = {"title" : "test0"}
return r
@route('/test1')
@view('test_home.mako')
def test1():
r = {"title" : "test1"}
return r
@route('/test_grid')
@view('grid.mako')
def test_grid():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment