Exemple #1
0
def encode_json():
    data = request.form.get('data')
    if data:
        encoded = to_urltoken(from_json(data))
        return encoded
    else:
        return 'No data'
def encode_json():
    data = request.form.get("data")
    if data:
        encoded = to_urltoken(from_json(data))
        return encoded
    else:
        return "No data"
Exemple #3
0
 def urltoken(self):
     return to_urltoken(self.data)
 def urltoken(self):
   return to_urltoken(self.data)
Exemple #5
0
def update():
    data = request.form.get('data')
    if data:
        return redirect(url_for('summary', data=to_urltoken(from_json(data))))
    else:
        return 'No data'
Exemple #6
0
def homepage():
    with open('examples/mcp23008.json') as f:
        data = json.load(f, object_pairs_hook=collections.OrderedDict)
    return redirect(url_for('summary', data=to_urltoken(data)))
def update():
    data = request.form.get("data")
    if data:
        return redirect(url_for("summary", data=to_urltoken(from_json(data))))
    else:
        return "No data"
def homepage():
    with open("examples/mcp23008.json") as f:
        data = json.load(f, object_pairs_hook=collections.OrderedDict)
    return redirect(url_for("summary", data=to_urltoken(data)))