def in_restoration(self):
        return getattr(self.restoration_context_id, 'request_id', False)
Determine if a restoration context is active for the current thread.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/registry.py/StackedObjectRestorer.in_restoration