Mercurial > code > home > repos > light9
diff bin/vidref @ 1369:6b5e079b3dbe
timeline hover goes to vidref
Ignore-this: 2ef2fa1b7bdff1bd2755689889385ea2
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 07 Jun 2016 08:16:22 +0000 |
parents | 95dfce5c12ce |
children | 6fa4288da8a6 |
line wrap: on
line diff
--- a/bin/vidref Mon Jun 06 08:09:46 2016 +0000 +++ b/bin/vidref Tue Jun 07 08:16:22 2016 +0000 @@ -50,6 +50,16 @@ class SnapshotPic(cyclone.web.StaticFileHandler): pass + +class Time(cyclone.web.RequestHandler): + def put(self): + body = json.loads(self.request.body) + t = body['t'] + source = body['source'] + self.settings.gui.incomingTime(t, source) + self.set_status(202) + + graph = SyncedGraph(networking.rdfdb.url, "vidref") gui = Gui(graph) @@ -60,6 +70,7 @@ {'path': 'light9/vidref', 'default_filename': 'vidref.html'}), (r'/snapshot', Snapshot), (r'/snapshot/(.*)', SnapshotPic, {"path": snapshotDir()}), + (r'/time', Time), ], debug=True, gui=gui)) log.info("serving on %s" % port)