Commits

Show all
Author Commit Message Labels Comments Date
prencher
Ready 0.3 release
Tags
0.3
crast
Don't concatenate validators, in case of incompatible types. Instead, use itertools.chain. Also, default value for extra_validators is now immutable.
crast
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.
crast
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
crast
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.
prencher
prencher
Update `SelectField` and `SelectMultipleField` to use pre_validate.
prencher
Overhaul how validation is done. This is an API breaking change for custom fields: * `Form.validate` now simply iterates the fields on the form and calls their `validate` method, passing along any `validate_<fieldname>` validators. It returns False if any of the `Field.validate` calls fail. * `Field.validate` calls `Field.pre_validate`, any validators passed to the field at construction time, any extra validators passed in via the `extra_validators` parameter, and finally `Fie…
prencher
Reword index.rst intro text slightly
crast
Reorganized and cleaned up fields documentation to be alphabetical, and to reflect the checker => coerce change.
crast
The `checker` argument to SelectField, RadioField, and SelectMultipleField has been renamed to `coerce` to reflect actual usage.
prencher
Fix a regression in the semantics of `Form.errors`; It should be an empty dict when there are no errors, not a dict of field names with empty lists. Thanks moraes.
prencher
prencher
Overhaul Form.errors to be a property that only fetches the errors from the fields on-demand and caches them on the Form instance. This is more memory and processing efficient, as most people don't use Form.errors, but rather field.errors. It is also needed for the upcoming Form.validate/Field.validate overhaul.
crast
ext.django: documentation work, also renamed QSChoices to QuerySetChoices. Refs #15.
crast
ext.django work: * Started creating test suite for ext.django. model_form test, while not exhaustive, does catch a whole lot of cases * Fixed some minor syntax errors in ORM fields * model_form now converts CharFields
crast
Test execution shell header changed to run on various systems
crast
Major overhaul in model_form: * `wtforms.ext.django.models` renamed to `orm` so it is not autoloaded by django. * Complete overhaul of the converter system, which in theory should be more robust at converting models into forms. * We can now convert ForeignKeys, in theory. * Unit tests coming soon. Refs #15.
crast
Added ext.django.fields module which will contain various useful fields for working with django. Refs #15.
crast
Update wtforms templatetags for a fringe case in variable resolution, and to use Django 1.0 API. Refs #15.
prencher
Ready files for 0.2.1
prencher
Redo 0.2 tag, missed a couple commits
  1. Prev
  2. Next