def sru(self):
        if not self.sruobj:
            self.sruobj = sru.Sru(self.context)

        return self.sruobj
Switch context, stack up contexts and pass on request.
dataset/ETHPy150Open geopython/pycsw/pycsw/server.py/Csw.sru--crossover with--dataset/ETHPy150Open abourget/pyramid_socketio/pyramid_socketio/io.py/SocketIOContext.switch