1. mohammad Efazati
  2. wtforms

Commits

Show all
Author Commit Message Date Builds
prencher
Undo 0.2 tag
Tags
0.2
prencher
Fix date in CHANGES.txt
prencher
prencher
prencher
prencher
Fix up __init__.py docstring
James Crasta
Added tag 0.2 for changeset 090694b1e8ba
James Crasta
Renamed test modules to not have extraneous test_ in them. Refs #1.
James Crasta
Unit test classes renamed to use FooTest naming. Refs #1.
James Crasta
Updated example validator docs to use a slightly better example. Refs #3.
prencher
0.2-prep: Update copyrights, tidy up docstrings, update setup.py, update README.txt
prencher
Don't pass args, kwargs to object.__new__ for 2.6 compatibility.
James Crasta
Started documenting `wtforms.form`. Refs #3.
James Crasta
Convert all existing tests to use unittest instead of py.test. Refs #1.
James Crasta
Minor documentation cleanup.
James Crasta
Cleaned up validators documentation and made it compile properly.
James Crasta
Added a `flags` property to Fields which contains booleans set by validators. This was created in response to discussion in IRC and on the mailing list on how to check to see if e.g. a field is required in the template, among things. * Created a Flags class to hold flags which supports __contains__ for checks. * a property field_flags on a validator is used to determine which flags to set at field construction time * Added documentation for flags, and fixed docs so that…
James Crasta
Created RadioField and added a series of tests. Refs #21. Thanks ckknight for the contribution on which this is based on.
James Crasta
url() and email() validators now accept >4char TLD's like .museum and any future TLD's of the sort. Updated tests to match.
James Crasta
SelectMultipleField now takes a list as input data, and handles the case where nothing is selected.
prencher
Optimize `__contains__`, should now be constant time.
prencher
Override __contains__ on form to allow `if 'username' in form` style behaviour. This is useful for dynamic forms.
prencher
Brainfart, Field shouldn't be exposed through star imports and the `wtforms` package. Also moved html_params to wtforms.utils.
prencher
Add `Field` to `__all__` in fields.py. Also reorganise __all__ a bit for readability.
prencher
StopValidation now inherits from ValidationError like it should.
prencher
Optional now works the same as other validators. Also updated the documentation for required, and removed the is_checked validator, as it's functionality is present in required.
prencher
Rename `Field._validate` to `Field.validate`.
James Crasta
Big Validation Change: * Added new semantics for validators which can stop the validation chain, with or without errors. * `Form` no longer accepts `required=` parameter. Use validators.required * validators.not_empty renamed to required, and stops the validation chain. Also added validators.optional which stops the chain without an error. * inline validators are now validate_x() with no _ prefix.
prencher
`required` is now a kwarg. It was never intended to be a positional argument and caused confusing semantics. `Field.__init__` no longer takes **kwargs and the internal `name` and `form` arguments have been prefixed with _. This clarifies intent, and construction will now error with invalid arguments, helping to debug typos.
James Crasta
Field cleanup and added more unit tests.
  1. Prev
  2. Next