Skip to content

Please support MONGODB_CONNECT setting (true/false) #266

New issue

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

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

Already on GitHub? # to your account

Closed
bjjl opened this issue Oct 9, 2016 · 3 comments · Fixed by #280
Closed

Please support MONGODB_CONNECT setting (true/false) #266

bjjl opened this issue Oct 9, 2016 · 3 comments · Fixed by #280
Milestone

Comments

@bjjl
Copy link

bjjl commented Oct 9, 2016

I had to patch like the following to get the code running on NetBSD, using flask blueprints.

--- connection.py.orig  2016-08-09 16:04:24.000000000 +0200
+++ connection.py   2016-10-09 14:16:12.000000000 +0200
@@ -257,7 +257,7 @@
        # Default to ReadPreference.PRIMARY if no read_preference is supplied
        read_preference = conn_setting.get('read_preference', ReadPreference.PRIMARY)

-        resolved = {}
+        resolved = { 'connect' : False }
        resolved['read_preference'] = read_preference
        resolved['alias'] = alias
        resolved['name'] = db
@lafrech
Copy link
Member

lafrech commented Oct 10, 2016

Contributors willing to fix the connexion regression in 0.8 are welcome to join in #71 (comment).

@lafrech lafrech added this to the 0.8.1 milestone Oct 10, 2016
@wojcikstefan
Copy link
Member

@bjjl if you run this against the latest commit in #280, does it work for you? Let me know pls.

@bjjl
Copy link
Author

bjjl commented Nov 26, 2016

@wojcikstefan looks good.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants