-
-
Notifications
You must be signed in to change notification settings - Fork 512
changes required to work with recent version of flask-login #393
Conversation
1 similar comment
I've been thinking about how this should be handled for a while. Instead of forcing users to use specific versions of Flask-Security and Flask-Login together, what if the use of this method / property included a check for callable? Something along the lines of callable(current_user.is_authenticated) and current_user.is_authenticated() or current_user.is_authenticated may allow for backward and forward compatibility, which will be especially useful while developers are in the process of upgrading their libraries' versions. |
callable made problems in the test templates ( accessing callable() from jinja). |
Apparently this still needs some py3 fixes... but I don't know much about it. |
These failing Python 3 tests appear to be caused by an unrelated dependency update. Rebasing should take care of them. |
merging bcrypt dependency fix
updating fork
This is a fun solution! I hate to shoot it down, but I strongly believe we should not monkey patch If we were going to go with this solution, I recommend we solve backward compatibility issues with dependenciesThe
The
The next time there is a major release, flask-security simply drops support for earlier versions of Let's not over engineer this! This is precisely what dependency management exists for: managing backward compatibility. There is simply no reason that future versions of |
@fuhrysteve 👍 well said! |
Perfectly reasonable. |
@fuhrysteve: damn, of course, why didnt I think about that... |
@GregoryVigoTorres Probably something in the changelog.. but I think we need to wait for @mattupstate to get back from his honeymoon (oct 5 according to twitter) as he's the maintainer and the only one who can decide how to do releases |
Of course, some things are more important. |
At least the workaround is pretty simple: |
Is there any way you folks can get the content of That'd be nice, and I wouldn't have to independently discover this issue that way. |
Thank you for the backward-compatible fix. #417 has been merged, fixing this issue and dropping support for older releases of Flask-Login, so I'm closing this PR. |
This likely is BREAKING with the packaged version of flask-login.
We probably want a way to get backward compatibility with the released version of flask-login... or do/should we expect flask-login to implement that backward compatibility ?