コード例 #1
0
 def publish(self, topic, data, options=None):
     service = yield self.getService()
     try:
         ret = yield service.publish(topic, data, options=options)
     except TransportLost:
         log.err(failure.Failure(), "while publishing event " + topic)
         return
     defer.returnValue(ret)
コード例 #2
0
ファイル: connector.py プロジェクト: craig5/buildbot
 def publish(self, topic, data, options=None):
     service = yield self.getService()
     try:
         ret = yield service.publish(topic, data, options=options)
     except TransportLost:
         log.err(failure.Failure(), "while publishing event " + topic)
         return
     defer.returnValue(ret)