Beispiel #1
0
    def __getstate__(self):
        state = {}
        state['class'] = type(self.event)
        source = self.event.source
        if not IPickles.providedBy(source):
            source = EventSource(source)
        state['source'] = source
        state['origin'] = self.event.origin
        state['targets'] = self.event.targets
        state['topics'] = self.event.topics
        state['event'] = self.event.event
        state['guid'] = self.event.GUID
        state['portal']=self.event.portal
 
        return state