Skip to content

Fixes (Python 3.6, tox, StringField default, latest versions...)#49

Merged
kvesteri merged 3 commits intokvesteri:masterfrom
noirbizarre:string-inheritance-fixes
Mar 5, 2017
Merged

Fixes (Python 3.6, tox, StringField default, latest versions...)#49
kvesteri merged 3 commits intokvesteri:masterfrom
noirbizarre:string-inheritance-fixes

Conversation

@noirbizarre
Copy link
Contributor

The latest version which makes use of StringField instead of TextField introduce some cahnges for those using StringField and child because StringField wasn't inheriting from TextField.
Most of changes are simply handled by inheriting of Field instead of StringField to avoid the brutal self.data = '' but for those which are really StringField (ie. expected type is a string), the default value was ignored.

So this PR properly handle default value for StringField.

While testing, I noticed some minor glitches I fixed:

  • Python 3.6 was not supported
  • it was tested against WTForms 2.0, latest is 2.1
  • tox.ini wasn't up to date (still testing against Python 2.6)
  • there was a naming conflict between some test classes

@noirbizarre noirbizarre changed the title String inheritance fixes Fixes (Python 3.6, tox, StringField default, latest versions...) Mar 2, 2017
@kvesteri
Copy link
Owner

kvesteri commented Mar 5, 2017

Thanks for the PR! 🚋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments