def LogAccessWrapper(func):
    'Decorator that ensures that HTTP access is logged.'

    def Wrapper(request, *args, **kwargs):
        'Wrapping function.'
        try:
            response = func(request, *args, **kwargs)
            server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
        except Exception:
            response = werkzeug_wrappers.Response('', status=500)
            server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
            raise
        return response
    return Wrapper
Decorator that ensures that HTTP access is logged.
def LogAccessWrapper(func):
    

    def Wrapper(request, *args, **kwargs):
        'Wrapping function.'
        try:
            response = func(request, *args, **kwargs)
            server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
        except Exception:
            response = werkzeug_wrappers.Response(, status=500)
            server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
            raise
        return response
    return Wrapper