Beispiel #1
0
def fillAmt(id, amt):
    id = int(id)
    amt = int(amt)

    g = getGlass(id)
    for i in xrange(amt):
        g.addDroplet(f.droplet())
    return redirect("/glass/%d" % id)
Beispiel #2
0
def fillAmt(id, amt):
    id = int(id)
    amt = int(amt)

    g = getGlass(id)
    for i in xrange(amt):
        g.addDroplet(f.droplet())
    return redirect("/glass/%d" % id)
Beispiel #3
0
def droplets(amt):
    amt = int(amt)
    out = []
    for x in range(amt):
        out.append(f.droplet().toString())
    return json.dumps(out)
Beispiel #4
0
def droplet():
    return f.droplet().toString()
Beispiel #5
0
def droplets(amt):
    amt = int(amt)
    out = []
    for x in range(amt):
        out.append(f.droplet().toString())
    return json.dumps(out)
Beispiel #6
0
def droplet():
    return f.droplet().toString()