コード例 #1
0
 def add_incoming_action(self, action, cls, callback):
     self.incomingSubscriptions[PyroPrefixes.prefix_incoming(action)] = {"class":cls, "function":callback}
     self.subscribe(self.incomingSubscriptions.keys())
コード例 #2
0
 def send_to_live(self, message, args):
     return self.send_message(PyroPrefixes.prefix_incoming(message), args)
コード例 #3
0
 def register_to_showtime(self, message, methodaccess, methodargs=None):
     return self.send_message(PyroPrefixes.prefix_registration(message), {"args": methodargs, "methodaccess": methodaccess})
コード例 #4
0
 def send_to_showtime(self, message, args, responding=False):
     if responding:
         return self.send_message(PyroPrefixes.prefix_responder(message), args)
     return self.send_message(PyroPrefixes.prefix_outgoing(message), args)