Open the session after the request context is pushed on the stack instead of in the constructor. This allows you to access the request context in a custom open_session method.
Open the session after the request context is pushed on the stack instead of in the constructor. This allows you to access the request context in a custom open_session method.

Signed-off-by: Armin Ronacher <51e1b983df8328b92ad653ca9129d9a11178303a@active-4.com>

qinfengsuiyu/flask,visaxin/flask,drewja/flask,jonieli/flask,wklken/flask,cliu-aa/flask,alexwidener/flask,cheesecake4392/flask,gbolahanalade/flask,luvten/flask,jorpramo/flask,hoatle/flask,moluzhang/flask,skmezanul/flask,nZac/flask,theo-l/flask,lynget/flask,iamantee/flask,garaden/flask,hyunchel/flask,jenalgit/flask,anujk3/flask,alanhamlett/flask,theo-l/flask,wudafucode/flask,kuhli/flask,dominjune/flask,Parkayun/flask,kuhli/flask,kuku940/flask,rawrgulmuffins/flask,pallets/flask,mysweet/flask,DesQi/flask,ABaldwinHunter/flask-clone-classic,wklken/flask,chuijiaolianying/flask,alanhamlett/flask,TylerB24890/flask,bluedazzle/flask,zailushangde/flask,XGiton/flask,mAzurkovic/flask,anujk3/flask,ghhong1986/flask,brianbeale/flask,tcnoviembre2013/flask,jonatanblue/flask,q1ang/flask,postelin/flask,raven47git/flask,aniketshukla/flask,alexwidener/flask,homeworkprod/flask,SsangYoon/Flask,chenke91/flask,anujk3/flask,godfreyy/flask,zoyanhui/flask,erishforG/flask,VictorChaun/flask,oculardexterity/flask,mAzurkovic/flask,artleaf/flask,xiaoshaozi52/flask,artleaf/flask,wtl-zju/flask,sonnyhu/flask,LonglyCode/flask,rollingstone/flask,nZac/flask,wldtyp/flask,fkazimierczak/flask,qinfengsuiyu/flask,GavinCruise/flask,bodefuwa/flask,RohithKP/flask,warm200/flask,jstacoder/flask,nju520/flask,onetinyr/flask,rawrgulmuffins/flask,xujianhai/flask,tjxiter/flask,fevxie/flask,raven47git/flask,chenke91/flask,algoStruct/flask,jonatanblue/flask,MjAbuz/flask,JamesTFarrington/flask,ryandvill/flask,JamesTFarrington/flask,wldtyp/flask,drewja/flask,flabe81/flask,Faiz7412/flask,AvivC/flask,s7v7nislands/flask,ghhong1986/flask,liuyi1112/flask,tristanfisher/flask,arvinls/flask,pxzhenren/flask,szymonm/flask,WSDC-NITWarangal/flask,TylerB24890/flask,sam-tsai/flask,HeyItsAlan/flask,Papa2k15/flask,EasonYi/flask,gangeshwark/flask,auready/flask,chuijiaolianying/flask,raven47git/flask,vishnugonela/flask,ankravch/flask,dawran6/flask,liuyi1112/flask,nwags/flask,fkazimierczak/flask,flamelizard/flask,lynget/flask,jiimaho/flask,pinkpet/flask,xujianhai/flask,tangfeng1/flask,elelianghh/flask,WSDC-NITWarangal/flask,dawran6/flask,huwenhui/flask,suppandi/flask,XGiton/flask,VictorChaun/flask,liukaijv/flask,edcomstock/flask,stephaniemertz/flask,karen-wang/flask,TylerB24890/flask,ezequielo/flask,tjxiter/flask,gilesburnfield/flask,jeezybrick/flask,flabe81/flask,hoatle/flask,JingZhou0404/flask,happyspace/flask,algoStruct/flask,Papa2k15/flask,suppandi/flask,adrianmoisey/cptdevops,robertglen/flask,zailushangde/flask,grayswand1r/flask,visaxin/flask,JingZhou0404/flask,ZacariasBendeck/flask,dhruvsrivastava/flask,jeezybrick/flask,Faiz7412/flask,flamelizard/flask,horica-ionescu/flask,adrianmoisey/cptdevops,onetinyr/flask,edcomstock/flask,luvten/flask,godfreyy/flask,rollingstone/flask,cgvarela/flask,chenrenyi/flask,horica-ionescu/flask,szymonm/flask,VictorChaun/flask,niima/flask,wudafucode/flask,cheesecake4392/flask,tripathi62674/flask,AvivC/flask,GavinCruise/flask,blankme/flask,fengsp/flask,visaxin/flask,fkazimierczak/flask,margguo/flask,jonieli/flask,Faiz7412/flask,karen-wang/flask,wilbert-abreu/flask,niima/flask,lyn233/flask,ankurpandey/flask,nwags/flask,wtorcasoGB/flask,tony/flask,justanr/flask,lord63-forks/flask,godfreyy/flask,Endika/flask,grayswand1r/flask,gangeshwark/flask,homeworkprod/flask,beni55/flask,algoStruct/flask,brianbeale/flask,mrdon/flask,luzzyzhang/flask,wtorcasoGB/flask,antsar/flask,Ricardo666666/flask,erishforG/flask,justanr/flask,wangjun/flask,ryandvill/flask,huwenhui/flask,Parkayun/flask,Ricardo666666/flask,antsar/flask,beni55/flask,mrdon/flask,tristanfisher/flask,AndreaEdwards/flask,tripathi62674/flask,dhruvsrivastava/flask,jstacoder/flask,q1ang/flask,treedledee/flask,artleaf/flask,abdulbaqi/flask,Eagles2F/flask,drewja/flask,mysweet/flask,ffsdmad/flask,wtl-zju/flask,wklken/flask,AndreaEdwards/flask,gangeshwark/flask,Ricardo666666/flask,tangfeng1/flask,Freebird2014/flask,jawed123/flask,oculardexterity/flask,sixpi/flask,RohithKP/flask,liaoqingwei/flask,jenalgit/flask,sonnyhu/flask,treedledee/flask,mitsuhiko/flask,kyle-sorensen/flask,pxzhenren/flask,jstacoder/flask,ffsdmad/flask,VShangxiao/flask,jonieli/flask,happyspace/flask,chenke91/flask,sage417/flask,jiimaho/flask,kyle-sorensen/flask,pledo/flask,ezequielo/flask,liaoqingwei/flask,jorpramo/flask,nju520/flask,sage417/flask,wangjun/flask,chenrenyi/flask,karlw00t/flask,gbolahanalade/flask,sam-tsai/flask,skmezanul/flask,jenalgit/flask,suppandi/flask,luzzyzhang/flask,AndreaEdwards/flask,vishnugonela/flask,SsangYoon/Flask,felipefuka/flask,lalinsky/flask,ankravch/flask,szymonm/flask,lyn233/flask,margguo/flask,SsangYoon/Flask,kuku940/flask,justanr/flask,moluzhang/flask,hyunchel/flask,alanhamlett/flask,tcnoviembre2013/flask,sgrepo/flask,VShangxiao/flask,robertglen/flask,LonglyCode/flask,fevxie/flask,ABaldwinHunter/flask-clone-classic,ZacariasBendeck/flask,garaden/flask,bodefuwa/flask,jorpramo/flask,s7v7nislands/flask,pinkpet/flask,blankme/flask,ankurpandey/flask,dominjune/flask,vivekanand1101/flask,mitsuhiko/flask,kyle-sorensen/flask,MjAbuz/flask,liukaijv/flask,DesQi/flask,felipefuka/flask,sixpi/flask,ezequielo/flask,EasonYi/flask,mrdon/flask,bluedazzle/flask,ankurpandey/flask,happyspace/flask,auready/flask,chuijiaolianying/flask,pallets/flask,fanshaohua-fan/flask,postelin/flask,gaomingnudt/gm-flask2.0,liuyi1112/flask,xiaoshaozi52/flask,HeyItsAlan/flask,lalinsky/flask,pledo/flask,postelin/flask,gilesburnfield/flask,VShangxiao/flask,mitchfriedman/flask,vishnugonela/flask,mujiatong/flask,mujiatong/flask,elelianghh/flask,tangfeng1/flask,tony/flask,fengsp/flask,iamantee/flask,oculardexterity/flask,cliu-aa/flask,s7v7nislands/flask,mrdon/flask,Freebird2014/flask,gaomingnudt/gm-flask2.0,karen-wang/flask,warm200/flask,nju520/flask,ryandvill/flask,onetinyr/flask,stephaniemertz/flask,karlw00t/flask,wilbert-abreu/flask,pallets/flask,cgvarela/flask,mitchfriedman/flask,lord63-forks/flask,zoyanhui/flask,liaoqingwei/flask,jawed123/flask,Endika/flask,warm200/flask,EasonYi/flask,Eagles2F/flask,fanshaohua-fan/flask,abdulbaqi/flask,sgrepo/flask,arvinls/flask,GavinCruise/flask,aniketshukla/flask,vivekanand1101/flask