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

[Fix] oauth url delimiter moved to function instead of global #2305

Merged
merged 2 commits into from
Nov 14, 2016
Merged

[Fix] oauth url delimiter moved to function instead of global #2305

merged 2 commits into from
Nov 14, 2016

Conversation

revant
Copy link
Collaborator

@revant revant commented Nov 11, 2016

@rmehta
found another global and moved it in function.
will this work?

@rmehta
Copy link
Member

rmehta commented Nov 12, 2016

Seems like a constant, does the delimiter change?

@revant
Copy link
Collaborator Author

revant commented Nov 12, 2016

Space is used as delimiter, I had to change it for one external app. That's why made a variable, so I don't have to type delimiter everywhere.

After learning variables should not be kept global added this in function.

@@ -11,7 +11,8 @@
from oauthlib.oauth2.rfc6749.endpoints.revocation import RevocationEndpoint
from oauthlib.common import Request

separated_by = " "
def oauth_url_delimiter(separator_character=" "):
return separator_character
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better choice for name would be get_url_delimiter since it is expected to return something.

@rmehta rmehta merged commit 7757aae into frappe:develop Nov 14, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants