def popup_status(request): return (IS_POPUP_VAR in request.GET or 'pop' in request.GET or IS_POPUP_VAR in request.POST or 'pop' in request.POST)