translate() to pass context to translator() so translator() can get request data without using globals #9

Open
wants to merge 1 commit into
from

1 participant

@alvinyue

translate() has context=None in the method signature but it is not used. If it is passed to translator(), then translator would not need to do get_current_request() (not green thread safe) in Pyramid.

unknown passing context from translate() to translator() so translator does n…
…ot need to get request from "get_current_thread()" in Pyramid.
a905b85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment