def onEvent(self, event): #It's not a real copy. The objects can change while they #are worked on here sm = SubscriptionManager() subs = sm.getSubscriptionsForTopicX(event.topic) if len(subs) == 0: return for sub in subs: self.sendEventNotification(sub, event)