def update(): status = Status.instance() updates = request.get_data().split("&") for u in updates: key, value = u.split("=") print "updating {0} to {1}".format(key, value) status.update(key, value) return ""
def response_of(template): content = render_template(template, status=Status.instance()) return Response(content, mimetype='text/xml')
def index(): return "%s This is a virtual implementation of the CyberQ BBQ Control Device" % Status.instance().time_remaining()