Skip to content

Use camelCase for replicaSet key in connection settings - #28

Merged
anemitz merged 1 commit into
MongoEngine:masterfrom
closeio:master
Dec 6, 2012
Merged

anemitz merged 1 commit into
MongoEngine:masterfrom
closeio:master

Conversation

@wojcikstefan

Copy link
Copy Markdown
Member

In MongoEngine, the ReplicaSetConnection class is chosen if 'replicaSet' in conn_settings, but Flask-MongoEngine lowers the case for all conn_settings' keys. This pull request offers an explicit fix, changing replicaset to replicaSet, if the key is present in conn_settings.

I haven't checked, if there are any other case-sensitive settings.

anemitz added a commit that referenced this pull request Dec 6, 2012
Use camelCase for replicaSet key in connection settings
@anemitz
anemitz merged commit 21e0152 into MongoEngine:master Dec 6, 2012
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.

2 participants