Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix app out of context when create connection #225

Closed
wants to merge 1 commit into from

Conversation

ntcong
Copy link

@ntcong ntcong commented May 23, 2016

My proposed fix for #220. Because there's no application context yet, current_app will fail.

Flask's extension guideline tells us to use application context only when we passed it, so we should pass the TESTING condition to _create_connection.

@lafrech
Copy link
Member

lafrech commented May 23, 2016

Thank you @ntcong.

Connection is being reworked by @losintikfos (#98, #71 (comment)).

@losintikfos, any advice on this? Any progress on the connection rework?

@losintikfos
Copy link
Member

losintikfos commented May 23, 2016

@lafrech I have been pretty busy on other projects. I will test the connection re-work towards mid week to enable us progress on our release plan.

@lafrech
Copy link
Member

lafrech commented May 23, 2016

OK, thanks. I didn't mean to rush you.

@lafrech
Copy link
Member

lafrech commented May 30, 2016

I forgot about this PR before commenting in #220.

As I said there, if the test about the TESTING config parameter is actually needed, I'd rather pass app to _create_connection than add a testing parameter.

@lafrech
Copy link
Member

lafrech commented Jun 29, 2016

I guess we can close this PR now that #220 is resolved.

@lafrech lafrech closed this Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants