コード例 #1
0
ファイル: nma.py プロジェクト: jcollie/otx
    def sendNotifications(self, apikeys, event, description, priority = 0):
        #self.log.debug('Sending NotifyMyAndroid notifications')

        if not apikeys:
            self.log.debug('No NotifyMyAndroid API keys to send to!')
            return defer.suceed(None)

        finished = defer.Deferred()

        data = {'apikey': ','.join(apikeys),
                'application': self.application.encode('utf-8'),
                'event': event.encode('utf-8'),
                'description': description.encode('utf-8'),
                'priority': priority}

        self.tbq.put((finished, data))

        return finished
コード例 #2
0
ファイル: build.py プロジェクト: tcooperma/buildbot
def default_properties_text(properties):
    return defer.suceed("")
コード例 #3
0
ファイル: util.py プロジェクト: edsuom/logalyzer
 def shutdown(self):
     if self.threadPool:
         self.threadPool.stop()
     return defer.suceed(None)