listener/app_engine/app/utils.py
def has_private_key(view_func):
    """ Will check that the person accessing the page is doing so with the private URL """
    def wrapper(*args, **kwargs):
        request = args[0]
        if settings.ARECIBO_PRIVATE_ACCOUNT_NUMBER not in request.get_full_path().split("/"):
            return HttpResponseRedirect(settings.LOGIN_URL)
        return view_func(*args, **kwargs)
    return wraps(view_func)(wrapper)
 Will check that the person accessing the page is doing so with the private URL 
Will check that the person accessing the page is doing so with the private URL
Will check that the person accessing the page is doing so with the private URL
def has_private_key(view_func):
    def wrapper(*args, **kwargs):
        request = args[0]
        if settings.ARECIBO_PRIVATE_ACCOUNT_NUMBER not in request.get_full_path().split("/"):
            return HttpResponseRedirect(settings.LOGIN_URL)
        return view_func(*args, **kwargs)
    return wraps(view_func)(wrapper)
def has_private_key ( view_func ) : def wrapper ( * args , ** kwargs ) : request = args [ 0 ] if settings . ARECIBO_PRIVATE_ACCOUNT_NUMBER not in request . get_full_path ( ) . split ( "/" ) : return HttpResponseRedirect ( settings . LOGIN_URL ) return view_func ( * args , ** kwargs ) return wraps ( view_func ) ( wrapper )
Will check that the person accessing the page is doing so with the private URL
Will check that the person accessing the page is doing so with the private URL
""" Will check that the person accessing the page is doing so with the private URL """
view_func