old_contents: # -*- coding: utf-8
  """
   ain7/middleware/forcelocale.py
  """
  #
  #   Copyright © 2009-2015 AIn7 Devel Team
  #
  #   This program is free software; you can redistribute it and/or modify
  #   it under the terms of the GNU General Public License as published by
  #   the Free Software Foundation; either version 2 of the License, or
  #   (at your option) any later version.
  #
  #   This program is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU General Public License for more details.
  #
  #   You should have received a copy of the GNU General Public License
  #   along with this program; if not, write to the Free Software
  #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  #
  #
  
  #
  # middleware to force fr language
  # taken from http://www.djangosnippets.org/snippets/218/
  #
  
  class ForceDefaultLanguageMiddleware(object):
      """
      Ignore Accept-Language HTTP headers
      
      This will force the I18N machinery to always choose settings.LANGUAGE_CODE
      as the default initial language, unless another one is set via sessions or
      cookies
      
      Should be installed *before* any middleware that checks 
      request.META['HTTP_ACCEPT_LANGUAGE'],
      namely django.middleware.locale.LocaleMiddleware
      """
      def process_request(self, request):
          """process the request"""
          if request.META.has_key('HTTP_ACCEPT_LANGUAGE'):
              del request.META['HTTP_ACCEPT_LANGUAGE']
  
  
new_contents: # -*- coding: utf-8
  """
   ain7/middleware/forcelocale.py
  """
  #
  #   Copyright © 2009-2015 AIn7 Devel Team
  #
  #   This program is free software; you can redistribute it and/or modify
  #   it under the terms of the GNU General Public License as published by
  #   the Free Software Foundation; either version 2 of the License, or
  #   (at your option) any later version.
  #
  #   This program is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU General Public License for more details.
  #
  #   You should have received a copy of the GNU General Public License
  #   along with this program; if not, write to the Free Software
  #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  #
  #
  
  #
  # middleware to force fr language
  # taken from http://www.djangosnippets.org/snippets/218/
  #
  
  class ForceDefaultLanguageMiddleware(object):
      """
      Ignore Accept-Language HTTP headers
      
      This will force the I18N machinery to always choose settings.LANGUAGE_CODE
      as the default initial language, unless another one is set via sessions or
      cookies
      
      Should be installed *before* any middleware that checks 
      request.META['HTTP_ACCEPT_LANGUAGE'],
      namely django.middleware.locale.LocaleMiddleware
      """
      def process_request(self, request):
          """process the request"""
          if request.META.has_key('HTTP_ACCEPT_LANGUAGE'):
              del request.META['HTTP_ACCEPT_LANGUAGE']
  
subject: Update forcelocale for pep8/flake