def doNotifyDependsOff(self, *args, **kwargs): """ Action method. """ if self.result_deferred: self.result_deferred.callback('depends_off') self.result_deferred = None on_service_callback('depends_off', self.service_name)
def doNotifyFailed(self, *args, **kwargs): """ Action method. """ if self.result_deferred: self.result_deferred.callback('failed') self.result_deferred = None on_service_callback('failed', self.service_name)
def doNotifyDependsOff(self, *args, **kwargs): """ Action method. """ if _Debug: lg.args(_DebugLevel, service=self, result='depends_off') if self.result_deferred: self.result_deferred.callback('depends_off') self.result_deferred = None driver.on_service_callback('depends_off', self.service_name)
def doNotifyNotInstalled(self, *args, **kwargs): """ Action method. """ if _Debug: lg.args(_DebugLevel, service=self, result='not_installed') if self.result_deferred: self.result_deferred.callback('not_installed') self.result_deferred = None driver.on_service_callback('not_installed', self.service_name)
def doNotifyFailed(self, *args, **kwargs): """ Action method. """ if _Debug: lg.args(_DebugLevel, service=self, result='failed') if self.result_deferred: self.result_deferred.callback('failed') self.result_deferred = None on_service_callback('failed', self.service_name)
def doNotifyFailed(self, *args, **kwargs): """ Action method. """ if _Debug: lg.args(_DebugLevel, service=self, result='failed') if self.stop_when_failed: try: self.stop() except: lg.exc() if self.result_deferred: self.result_deferred.callback('failed') self.result_deferred = None driver.on_service_callback('failed', self.service_name)