def identify(self, instance): if (IRecorder.providedBy(instance) and instance.journal_id in self.registry): return instance.journal_id
def wrapper(self, *args, **kwargs): recorder = IRecorder(self) return recorder.call(function, args, kwargs, reentrant=reentrant)