Exemplo n.º 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())
Exemplo n.º 2
0
 def send_to_live(self, message, args):
     return self.send_message(PyroPrefixes.prefix_incoming(message), args)
Exemplo n.º 3
0
 def register_to_showtime(self, message, methodaccess, methodargs=None):
     return self.send_message(PyroPrefixes.prefix_registration(message), {"args": methodargs, "methodaccess": methodaccess})
Exemplo n.º 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)