示例#1
0
 def send_signal(self):
     signal = WEBHOOK_SIGNALS.get(self.kind)
     if signal:
         return signal.send(sender=Event, event=self)
 def disconnect_webhook_signal(kind, func, **kwargs):
     signal = WEBHOOK_SIGNALS.get(kind)
     signal.disconnect(func, **kwargs)
 def send_signal(customer, kind):
     event = Event(customer=customer, kind=kind)
     signal = WEBHOOK_SIGNALS.get(kind)
     signal.send(sender=Event, event=event)
 def disconnect_webhook_signal(kind, func, **kwargs):
     signal = WEBHOOK_SIGNALS.get(kind)
     signal.disconnect(func, **kwargs)
 def send_signal(customer, kind):
     event = Event(customer=customer, kind=kind)
     signal = WEBHOOK_SIGNALS.get(kind)
     signal.send(sender=Event, event=event)
示例#6
0
 def send_signal(self):
     signal = WEBHOOK_SIGNALS.get(self.kind)
     if signal:
         return signal.send(sender=Event, event=self)