'Proccess the request to Set or clear the DarkLang depending on the incoming request.
Arguments:
request (Request): The Django Request Object
Returns:
HttpResponse: View containing the form for setting the preview lang with the status
included in the context'

def process_darklang_request(self, request):

    context = {'disable_courseware_js': True, 'uses_pattern_library': True}
    response = None
    if (not DarkLangConfig.current().enabled):
        message = _('Preview    Language    is    currently    disabled')
        context.update({'form_submit_message': message})
        context.update({'success': False})
        response = render_to_response(self.template_name, context, request=request)
    elif ('set_language' in request.POST):
        response = self._set_preview_language(request, context)
    elif ('reset' in request.POST):
        response = self._clear_preview_language(request, context)
    return response
