Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

_cached_content is being overwritten as a function #7

Open
dandroid88 opened this issue Oct 2, 2014 · 2 comments
Open

_cached_content is being overwritten as a function #7

dandroid88 opened this issue Oct 2, 2014 · 2 comments

Comments

@dandroid88
Copy link

access_token = resp.content.get('access_token')

AttributeError: 'function' object has no attribute 'get'

Commented out the content() override in RauthResponse and everything works. I am using python 2.7 and OAuth2. Took me a while to wire up pycharm and confirm. Just as I step into the if, it changes from a member variable to an instance function...not sure why though.

For now I will forgoe the caching...

@dantaylor688
Copy link

Wow, thanks. I had the same error. Your comment saved me a bunch of time!

@dandroid88
Copy link
Author

Absolutely, we forked it, and removed the caching: https://github.com/flair-systems/flask-rauth
Since the forked version wasn't in pip we added this to our requirements.txt:
-e git://github.com/flair-systems/flask-rauth.git@face89b#egg=Flask_Rauth-master
cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants