예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)
예제 #6
0
 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)