-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
TypeError: 'bool' object is not callable #74
Comments
I've already solved this problem. |
@jerrypy Wow, that is a pretty awful change that is going to break every application. Thanks for doing the research. Not sure how I'll handle this, need to think about it. |
@jerrypy Thanks, I also met this problem some days ago. |
also had this problem, thanks @jerrypy for solving this! |
The repo has been updated to work with Flask-Login 0.3.0. I've added an errata entry for this problem on the flaskbook.com site. |
hello @miguelgrinberg ,i git clone flasky project on github,i met this problem today。 |
@jerrypy Thank you!!! |
@jerrypy Thank you very much!!! |
@jerrypy Thanks very much ! It botherd me several hours. |
The docs are wrong! If possible please update the documentation (at https://flask-login.readthedocs.org/en/latest/#your-user-class) to document this change, I had to employ Google-fu to solve this issue. |
@ResidentMario I agree with you. In my opinion this change causes more trouble than its worth, and if it was up to me I would have never made it. Unfortunately the maintainer of Flask-Login has different views, he seems to not be too concerned about backwards compatibility. I have updated the Flasky repository, and also added the changes to the book errata. Whenever O'Reilly reprints the book, the correct code will be used. I know it isn't much, but unfortunately I cannot do more from my side. Hopefully Google will send people having the problem to this page, where the situation is explained. |
@jerrypy Thank you. |
Face palm. Thanks Jerrypy/everyone. |
This is a silly change, from getter function to property -- broke site instantly for no good reason. |
@veryxcit I'm with you 100%. Really sorry (and not happy at all) that Flask-Login rolled out this change. |
I followed your book to learn flask, it works very well until I used
current_user
, I gotthis kind of error. I thought maybe there're some mistakes in my code, so I download your code from github, and checkout to branch
8c
, but same thing happend, check traceback message below:Here is the version of some related package I'm using:
Thank you so much if you can help me solve this problem.
The text was updated successfully, but these errors were encountered: