def show(): response.headers["Content-Type"] = "application/json" print controls.getAll(cursor, True) return controls.getAll(cursor, True)
def homepage(): return template("app/views/home", switches=controls.getAll(cursor))