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

Summary: Switched to metadb in pages templates

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1881 b32b6428-25c9-4566-ad07-03861ab6144f
parent 055d94d6
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,8 @@ def test1():
@route('/test_grid')
@view('grid.mako')
def test_grid():
return {"title":"Grid"}
return {"title" : "Grid","devices":xaal_core.monitor.devices}
@route('/latency')
def socketio_latency_test():
......
<%def name="thermometer(addr)">
<div>
<a href="/generic/${addr}">
<div data-is="thermometer" xaal_addr=${addr}></div>
</a>
</div>
</%def>
......@@ -12,7 +12,7 @@
<h2>Description</h2>
<table width=100%>
<tr><th>Name</th><th>value</th></tr>
% for k in dev.description.keys():
% for k in dev.description:
<%
value = dev.description[k]
if not value:
......@@ -24,5 +24,12 @@
<h2>Attributes</h2>
<div data-is="generic-attrs" xaal_addr="${dev.address}"></div>
<script type="riot/tag" src="/static/tags/generic_attrs.tag"></script>
<h2>Meta Data</h2>
<table width=100%>
<tr><th>key</th><th>value</th></tr>
% for k in dev.db:
<tr><td>${k}</td><td>${dev.db[k]}</td></tr>
% endfor
</table>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment