def language_changer_decorator(language_changer):
 def _decorator(func):
  def _wrapped(request, *args, **kwargs):
   set_language_changer(request, language_changer)
   return func(request, *args, **kwargs)
  _wrapped.__name__ = func.__name__
  _wrapped.__doc__ = func.__doc__
  return _wrapped
 return _decorator

def language_changer_decorator ( language_changer ) : def _decorator ( func ) : def _wrapped ( request , * args , ** kwargs ) : set_language_changer ( request , language_changer ) return func ( request , * args , ** kwargs ) _wrapped . __name__ = func . __name__ _wrapped . __doc__ = func . __doc__ return _wrapped return _decorator
a decorator wrapper for set_language_changer .