def reporter(request, env): from lektor.reporter import BufferReporter reporter = BufferReporter(env) reporter.push() request.addfinalizer(reporter.pop) return reporter
def reporter(request, env): reporter = BufferReporter(env) reporter.push() request.addfinalizer(reporter.pop) return reporter