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

"use_slave" decorator & context manager #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joconor
Copy link

@joconor joconor commented Jul 11, 2016

Create a new context manager / decorator: use_slave that mirrors the use_master context manager / decorator. This is needed to override the default behavior in cases where the behavior would be to pin to master (e.g., if request method is a POST) but the decorated method is known not to do db writes.

Jay O'Conor added 4 commits June 21, 2016 15:21
…use_master context manager / decorator. This is needed to override the default behavior in cases where the behavior would be to pin to master (e.g., if request method is a POST) but the decorated method is known not to do db writes.
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.

1 participant