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 'WSGIRequest' object does not support item assignment error #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dropbox/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ def get_dropbox_auth_flow(web_app_session):
"dropbox-auth-csrf-token")

# URL handler for /dropbox-auth-start
def dropbox_auth_start(web_app_session, request):
authorize_url = get_dropbox_auth_flow(web_app_session).start()
def dropbox_auth_start(web_app_session):
authorize_url = get_dropbox_auth_flow(web_app_session.session).start()
redirect_to(authorize_url)

# URL handler for /dropbox-auth-finish
def dropbox_auth_finish(web_app_session, request):
def dropbox_auth_finish(web_app_session):
try:
oauth_result = \\
get_dropbox_auth_flow(web_app_session).finish(
get_dropbox_auth_flow(web_app_session.session).finish(
request.query_params)
Copy link
Contributor

Choose a reason for hiding this comment

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

If you remove request you need to find proper replacement for all its usages within the function. Otherwise the code will break.

except BadRequestException, e:
http_status(400)
Expand Down