Commits

Show all
Author Commit Message Labels Comments Date
prencher
Ready for 0.3.1
Tags
0.3.1
prencher
prencher
`Form.auto_populate` now calls `Field.populate` for each field to populate an object. This is needed for the upcoming `FormField` subform support. Also cleaned up the documentation a little.
James Crasta
Minor docs fix
James Crasta
wtforms.ext.django cleanup: optimized variable resolution in template tag
James Crasta
Form properties can now be accessed dict-style to be more compatible with template frameworks which need it, such as Django.
James Crasta
Tabs are most certainly NOT spaces.
James Crasta
`runtests.py` now gives a proper exit code
James Crasta
Tests: added some regression unittests for Form to make sure behaviour is consistent
James Crasta
Tests: use assert_ instead of assertTrue. As a side effect, unit tests should now work on python2.3's default unittest.py
James Crasta
Added documentation and test for `FormMeta`, also cleaned things up so we no longer need `UnboundField.name`.
prencher
Make `Field.__new__` check for both `_form` and `_name` arguments, not just one.
James Crasta
`UnboundField` cleanup: changed how `bind` and `__repr__` work.
James Crasta
WTForms now works on python 2.4 and 2.3, and tests complete as long as `unittest.py` from 2.4+ is used. fixes #23.
James Crasta
Major changes in how field and form construction occur: These changes mainly affect the internal API and will have little to no change for most users unless you have custom fields which override Form or Field's __new__. * Instead of using `functools.partial` or `utils.partial`, a partially-constructed field now is represented by an UnboundField instance. This was done to increase clarity in how fields work as well as help compatibility …
prencher
Ready files for 0.4dev
prencher
Added tag 0.3 for changeset b8a23af99f8e
prencher
Ready 0.3 release
Tags
0.3
James Crasta
Don't concatenate validators, in case of incompatible types. Instead, use itertools.chain. Also, default value for extra_validators is now immutable.
James Crasta
Changes in how `process_data` and `process_formdata` are called: * `process_data` no longer accepts the `has_formdata` parameter. * At form instantiation time, `process_data` will be called only once for each field. If a model object is provided which contains the property, then this value is used. Otherwise, a keyword argument if specified is used. Failing that, the field's default value is used. * If any form data is sent, `process_formdata` will …
prencher
Change the way process_data and process_formdata is called: * process_data is first called with the default; * Then, process_formdata will be called if `formdata` has any data for the field; * If no formdata is present, process_data will then be called with data from the passed `obj`; * Finally, if there is no data in `obj` for the field, process_data will be called with data passed through `**kwargs`, if provided. Previously, process_data would be ca…
prencher
Improve `Field` baseclass docs.
James Crasta
wtforms.ext.django cleanup for 0.3: Closes #15. * the ext_django test is now a package, with tests including live ORM data. * Wrote tests for QuerySetSelectField and ModelSelectField * Fixed some imports and variable spelling in QuerySetSelectField
prencher
Improve Form documentation
prencher
Docs: Fix reference to wtforms.ext.django.templatetags.wtforms
James Crasta
ext.django cleanup: Removed QuerySetChoices, added more ext.django documentation.
prencher
prencher
Merged
prencher
Add note about validation overhaul to CHANGES.txt. Fixes #22.
prencher
Add Form unittests.
  1. Prev
  2. Next