Esempio n. 1
0
def devices():
    devices = core.devices.values()
    devices.sort(key=lambda d: d.name)
    return templates.render('devices.html', devices=devices)
Esempio n. 2
0
def devices():
    devices = core.devices.values()
    devices.sort(key=lambda d: d.name)
    return templates.render('devices.html', devices=devices)
Esempio n. 3
0
def device(name):
    dev = core.devices.get(name)
    return templates.render('device.html', device=dev)
Esempio n. 4
0
def device(name):
    dev = core.devices.get(name)
    return templates.render('device.html', device=dev)