-
Notifications
You must be signed in to change notification settings - Fork 131
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
Updated to Flask-WTF 0.9.3 #47
Conversation
I also wanted to do some upgrades here but I'm basically waiting for the WTForms to release the final version 2.0 in order to touch Flask-WTF, because I don't want to break backwards compatibilities too often.. Thanks but I think, this one will be revised when it's time.. for now it works nicely :) |
Forgot the link that I wanted to post: http://wtforms.readthedocs.org/en/latest/whats_new.html |
Great eye .. we missed couple of updates. Irrelevant but maybe we should put down all the backwards incompatible changes for version 2.
|
The last commit is based on http://flask.pocoo.org/docs/extensiondev/#anatomy-of-an-extension showing that the flask.ext. notation can be followed to find the extensions (which in recent incarnations of Flask are all moving towards a more maintainable structure). |
The same article referred to above shows that |
After moving relevant changes and background information here, the |
The Flask-WTF project is tracking WTForms 2.0 also, see wtforms/flask-wtf#94 |
Now we just have to see who is going to deliver first... and if we could drop one of them would be also cool to have less dependencies.. Much appreciated the research that you're making... I'll buy you a beer when we'll be in the same city at one point :D |
Thanks. I will probable need to read up on WTForms, but I thought Flask-WTF glued WTForms to Flask; and thus we would continue to use it (unless it would become obsolete/pointless when all features are in WTForms 2.0...) |
Superseded by #59 "Update Flask-WTF to 0.9.4" which is a much cleaner PR because of steps already taken in |
Updated to Flask-WTF 0.9.3; note that this requires us to import
wtforms
andwtforms.validators
ourselves: see https://flask-wtf.readthedocs.org/en/latest/upgrade.html#version-0-9-0 reading: "Dropping the imports of wtforms is a big change, it may be lots of pain for you, but the imports are hard to maintain. Instead of importing Fields from Flask-WTF, you need to import them from the original wtforms" (and this applies to the validators as well).