def process_request (self, request):
        try:
            request.django_root
        except __HOLE__:
            request.django_root = ''

        login_url = settings.LOGIN_URL + '?next=%s' % request.path

        if request.path.startswith(request.django_root):
            path = request.path[len(request.django_root):]
        else:
            return HttpResponseRedirect (login_url)
        
        if not request.user.is_authenticated () and not \
        (path == settings.LOGIN_URL or
         self.matches(path)
         ):
            logger.debug("Redirecting locked down site %s to login." % path)
            return HttpResponseRedirect (login_url)

        return None
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/middleware/sitelockdown.py/SiteLockDown.process_request