From: Diane Trout Date: Mon, 10 Dec 2007 21:06:55 +0000 (+0000) Subject: [project @ use XmlRpcBot.rpc_send] X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=d9c550cf1781042a1871615774a36f10f07e810b [project @ use XmlRpcBot.rpc_send] that way I can put all the logging code and error checking code in one place, and I don't have to pass around the client connection. --- diff --git a/gaworkflow/copier.py b/gaworkflow/copier.py index 0e10aa0..268ff64 100644 --- a/gaworkflow/copier.py +++ b/gaworkflow/copier.py @@ -203,7 +203,7 @@ class CopierBot(rpc.XmlRpcBot): self.send(u, 'run %s finished' % (runDir)) if self.notify_runner is not None: for r in self.notify_runner: - rpc.send(self.cl, self.runner, (runDir,), 'runFinished') + self.rpc_send(self.runner, (runDir,), 'runFinished') logging.info("forwarding runFinshed message for %s" % (runDir)) def update(self, *args):