Ejemplo n.º 1
0
 def get_start_time(tid):
     d = defer.Callback()
     self.recorder_interface.GetStartTime(
         tid,
         reply_handler=lambda x, success: d.callback(x),
         error_handler=lambda x, success: d.errback(x))
     return d
Ejemplo n.º 2
0
 def get_infos(tid):
     d = defer.Callback()
     self.recorder_interface.GetAllInformations(
         tid,
         reply_handler=lambda x, success: d.callback(x),
         error_handler=lambda x, success: d.errback(x))
     return d