Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str TupleLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body Return NameLoad Return UnaryOpNot Call NameLoad GeneratorExp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Str Return NameLoad Assign AttributeStore NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Taken from zamboni.amo.middleware.

This is django-localeurl, but with mozilla style capital letters in
the locale codes.
 N/A urllib warnings warn django.conf settings django.http HttpResponsePermanentRedirect django.utils.encoding smart_str N/A tower N/A urlresolvers helpers urlparams LocaleURLMiddleware N/A object N/A N/A 
    1. Search for the locale.
    2. Save it in the request.
    3. Strip them from the URL.
     __init__ N/A N/A self N/A N/A N/A N/A N/A N/A settings USE_I18N N/A N/A settings USE_L10N N/A N/A N/A warn USE_I18N or USE_L10N is False but LocaleURLMiddleware is loaded. Consider removing funfactory.middleware.LocaleURLMiddleware from your MIDDLEWARE_CLASSES setting. N/A N/A self exempt_urls N/A getattr settings FF_EXEMPT_LANG_PARAM_URLS N/A N/A _is_lang_change N/A N/A self request N/A N/A N/A Return True if the lang param is present and URL isn't exempt. N/A N/A lang N/A request GET N/A N/A False N/A N/A N/A any N/A N/A N/A N/A request path endswith url N/A url N/A self exempt_urls N/A process_request N/A N/A self request N/A N/A N/A prefixer N/A N/A urlresolvers Prefixer request N/A N/A N/A urlresolvers set_url_prefix prefixer N/A full_path N/A N/A prefixer fix N/A prefixer shortened_path N/A N/A N/A self _is_lang_change request N/A N/A N/A prefixer locale N/A new_path N/A N/A prefixer fix N/A prefixer shortened_path N/A query N/A dict N/A N/A N/A smart_str k N/A N/A request GET N/A k N/A k N/A request GET N/A N/A N/A query pop lang N/A N/A HttpResponsePermanentRedirect N/A urlparams new_path query N/A N/A full_path N/A request path N/A N/A query_string N/A N/A N/A request META get QUERY_STRING N/A full_path N/A N/A urllib quote N/A N/A full_path encode utf-8 N/A query_string N/A N/A full_path N/A %s?%s N/A full_path query_string N/A response N/A HttpResponsePermanentRedirect full_path N/A old_locale N/A prefixer locale N/A N/A new_locale _ N/A N/A urlresolvers split_path full_path N/A N/A old_locale new_locale N/A N/A N/A response N/A Vary Accept-Language N/A response N/A N/A request path_info N/A / N/A prefixer shortened_path N/A N/A request locale N/A prefixer locale N/A N/A N/A tower activate N/A prefixer locale N/A N/A