wsgi RequestDispatcher what is lang argument for?
"John P. Rouillard" <[email protected]> Wed, 20 Mar 2024 21:15:16 -0400
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Everybody:
I was making some changes to wsgi.py today. I came across the definition
of the __init__ function for the RequestDispatcher that is invoked
from the wsgi driver loaded by the wsgi server.
def __init__(self, home, debug=False, timing=False, lang=None,
feature_flags=None):
The home parameter is the tracker home. I assume debug and timing
produce debug and timing info somehow/somewhere. What is lang used
for? It seems to initialize self.translator using the specified
language.
But shouldn't the translator language come from the lang setting in
the tracker home's config.ini file?
I worked back though the commits using annotate and am none the
wiser. Anybody have clue they can lend me?
Thanks.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.