'Take pre-rendered tuples from mr_top and replace the
contents of the query outright. This should be considered a
private API'

def _replace(self, tuples, lock=True):

    if lock:
        def _mutate(data):
            return tuples
        self._mutate(_mutate, willread=False)
    else:
        self._fetched = True
        self.data = tuples
        g.permacache.pessimistically_set(self.iden, tuples)
