1. Francisco Souza
  2. wtforms

Commits

Author Commit Message Date Builds
moraes
Code style changes to follow simplecodes' one.
moraes
Adding appengine extension.
crast
ext.django.orm: Added mappings for DecimalField, better FloatField converter, reorganized code for easier creating custom converters
crast
DecimalField: fix formatting / validation / coercion issues. - DecimalField previously coerced values to float before printing them, this bug could cause possible loss of data due to rounding/precision issues. - `number_format` keyword argument replaced with `places` and `rounding` arguments to better control how the Decimals are printed. - `data` is set to None when invalid form input is given, like IntegerField - DecimalField will now correctly …
crast
ext.django model_form: More flexible creating of model forms, allowing fields to be excluded/included and passing custom field kwargs and custom converters. Based on ideas taken from moraes' appengine model_form implementation
crast
Added NumberRange validator. Thanks moraes for patch. Refs #20.
crast
resolve default callable at process() time instead of __init__. This works better for uses like default=datetime.now and the like.
crast
Tests: allow runtests.py to take extra test module names at cmdline
crast
BaseForm: support binding new fields, and move __delattr__ to Form. Form now also raises appropriate errors for attempting to add fields.
crast
Remove ugly formdata=None kluge in process()
crast
FormField: support a separator= argument to do custom joiners for field name composition.
crast
BaseForm now won't suffix prefixes with a dash if they already end with punctuation. This is to aid integration with other frameworks. Also cleaned up some docs.
crast
BaseForm: first argument is now named 'fields'. Also, since I forgot earlier, thanks to Emil Vladev for his BaseForm fork which inspired the previous few changesets.
crast
Added tests for BaseForm
crast
Create a BaseForm class which is the base of Form. Implications: * BaseForm allows WTForms's core behaviour to be used without requiring declarative subclassing of forms. * BaseForm implements the methods Form used to, plus a process() method to take input data. * Form is now essentially a declarative addon to BaseForm. * BaseForm allows for easier adding and removing of fields in forms since input processing is not tied to instantiation. Form reta…
crast
Removed idprefix functionality throughout wtforms.
crast
docs: Fix the custom widget example to actually be correct. oops.
crast
FieldList will now accept a gap in indices, for ease of implementing dynamic field addition in templating and javascript frameworks.
crast
Field.__init__ now takes _prefix and _idprefix optional kwargs. Implications: - Fields construct the form name from _prefix and _name. Refs #16. - Fields now have a `short_name` property which is the un-prefixed name. - UnboundField.bind now takes optional prefix= and idprefix= arguments. - No more klugey hacks with getting Form._idprefix in the Field constructor. - Custom fields which enclose other fields should be easier to implement. This should not be an API break…
crast
We don't need a comparator function on UnboundField anymore.
crast
Updated tests to go with tablewidget HTML fixes. Refs #19.
Thomas Johansson
Fix typo in TableWidget html. Fixes #19.
crast
ext.sqlalchemy tests: Cleaned up lazy widget to instead give a list of tuples, for more clear (though somewhat more verbose) comparisons.
crast
ext.sqlalchemy ModelSelectField: don't assume that model.query is a factory function, it may not be with Session.mapper now deprecated.
crast
Fix a unit test which changed due to auto-label generation. Refs #16
Thomas Johansson
Fix weird wrapping of kwargs param in docs
Thomas Johansson
Fix up some docstrings and documentation.
Thomas Johansson
Use title rather than capitalize for auto-label generation. References #16.
Thomas Johansson
Wrap a few docstrings and a couple of very large method definitions
Thomas Johansson
Set label to a cleaned up version of the attribute name if the user doesn't provide a label. This probably needs some tweaks in how it cleans the attribute name, and should be moved into Field proper. References #16.
  1. Prev
  2. Next