Beispiel #1
0
 def D(self, event):
     print("D", self.counter, event)
     self.counter += 1
     return event, DictEvent(name="D",
                             counter=self.counter,
                             parentcounter=event['counter'])
Beispiel #2
0
 def trigger(self):
     print("I'm gonna trigger you so hard, listener!")
     return None, DictEvent(event='root cause')
Beispiel #3
0
 def A(self):
     print("A", self.counter)
     self.counter += 1
     return None, DictEvent(name="A", counter=self.counter)
Beispiel #4
0
 def managed_to_listen(self, event):
     e = DictEvent(event)
     e['event2'] = 'I got the message, bro.'
     return event, e