Mercurial > code > home > repos > light9
diff bin/curvecalc @ 623:46d319974176
move networking settings to config.n3
Ignore-this: 42a6390f9354a171c4d43e1c65a551ca
author | drewp@bigasterisk.com |
---|---|
date | Wed, 15 Jun 2011 05:30:19 +0000 |
parents | 54341e5e8d82 |
children | 54c863b2553e |
line wrap: on
line diff
--- a/bin/curvecalc Wed Jun 15 05:30:00 2011 +0000 +++ b/bin/curvecalc Wed Jun 15 05:30:19 2011 +0000 @@ -80,7 +80,7 @@ def current_time(self): """return deferred which gets called with the current time""" - d = self.player.request("GET", networking.musicUrl() + "time") + d = self.player.request("GET", networking.musicPlayer.path("time")) d.addCallback(self._timeReturned) return d @@ -96,7 +96,8 @@ def seekplay_or_pause(self,t): d = self.player.request("POST", - networking.musicUrl() + "seekPlayOrPause", bodyProducer=StringProducer(jsonlib.write({"t" : t}))) + networking.musicPlayer.path("seekPlayOrPause"), + bodyProducer=StringProducer(jsonlib.write({"t" : t}))) class Expr(object): """singleton, provides functions for use in subterm expressions,