(no subject)

Friday, 17 August 2012 22:38
gns_ua: (Default)
[personal profile] gns_ua
Нет, я бы мог конечно сделать так:

class SSLContainer(tornado.wsgi.WSGIContainer):
    def environ(request):
        env = tornado.wsgi.WSGIContainer.environ(request)
        env['SSL_CLIENT_CERT'] = request.get_ssl_certificate()
        return env


Только вот это статический метод. И вызывается он в WSGIContainer.__call wsgi.py:227 вот прямо так:

app_response = self.wsgi_application(WSGIContainer.environ(request), start_response)

Ну и запатчу на self.__class__. Подумаешь. Ещё и багрепорт напишу.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

gns_ua: (Default)
gns_ua

April 2017

M T W T F S S
     12
3456789
10111213141516
17181920212223
24252627282930

Expand Cut Tags

No cut tags