ocarina/libsaria/server/pages/rpc.py

27 lines
379 B
Python

# Bryan Schumaker (5 / 15 / 2011)
from libsaria import sources
from libsaria import controls
def play(write):
controls.play()
write("")
def pause(write):
controls.pause()
write("")
def play_id(write, id):
sources.play_id(long(id[0]))
write("")
rpc = {
"play.html":(play, "html"),
"pause.html":(pause, "html"),
"play_id":(play_id, "html"),
}
docs = {
"RPC":rpc,
}