def _agreement_context(request):
 request_path = request.META['PATH_INFO']
 nocheck = filter((lambda x: request_path.startswith(x)), settings.POOTLE_LEGALPAGE_NOCHECK_PREFIXES)
 if (request.user.is_authenticated and (not nocheck) and LegalPage.objects.has_pending_agreement(request.user)):
  return True
 return False

def _agreement_context ( request ) : request_path = request . META [ 'PATH_INFO' ] nocheck = filter ( ( lambda x : request_path . startswith ( x ) ) , settings . POOTLE_LEGALPAGE_NOCHECK_PREFIXES ) if ( request . user . is_authenticated and ( not nocheck ) and LegalPage . objects . has_pending_agreement ( request . user ) ) : return True return False
returns whether the agreement box should be displayed or not .