Skip to content

"use_slave" decorator & context manager#2

Open
joconor wants to merge 4 commits intowikical:masterfrom
clearcare:feature/use-slave
Open

"use_slave" decorator & context manager#2
joconor wants to merge 4 commits intowikical:masterfrom
clearcare:feature/use-slave

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