Share

FormEncode for Python

Code

Programming Languages: Python

Show:

What's happening?

  • Documentation for formencode.validators.Set needs update

    The docstring for Set mentions ForEach(convertToList=True), but it's ForEach(convert_to_list=True).

    2009-11-21 11:51:47 UTC by nobody

  • OneOf validator may raise UnicodeError

    When I use OneOf validator with unicode strings, I get UnicodeEncodeError like this: >>> from formencode.validators import OneOf >>> OneOf([u"はい", u"いいえ"]).to_python("yes") Traceback (most recent call last): File "", line 1, in File "/home/nozom/work/pyxis/lib/python2.5/site-packages/FormEncode-1.2.2-py2.5.egg/formencode/api.py", line 416, in to_python...

    2009-11-02 09:19:06 UTC by https://www.google.com/accounts

  • FormEncode for Python

    ianbicking added desmaj to the FormEncode for Python project.

    2009-10-29 19:02:36 UTC by ianbicking

  • URL validator does not accept one-character hostnames

    http://b.ds1.nl is a valid URL, but not accepted by the URL validator because it (wrongly) insits a hostname must have at least two characters.

    2009-10-23 15:04:06 UTC by wichert

  • non-string val in schema String bombs if min/max

    If you use min/max with a String validator and throw a float value at it, it will just convert the float to a string. String(min=5).to_python(12.5) will return "12.5" However, if you make the validator part of a Schema it does not behave the same way. In fact it fails rather than raise Invalid: class TestValidator(Schema): one = String(min=5) two = String(max=10) vals =...

    2009-10-15 04:51:54 UTC by nobody

  • DateConverter raises Invalid on mm/yy

    In spite of the fact that the documentation for DateConverter says: "Validates and converts a string date, like mm/yy ..." If you do: d = twf.validators.DateConverter() d.to_python('01/09') or d.to_python('01/2009') You get: Invalid: Please enter the date in the form mm/dd/yyyy I would like to be able to use mm/yyyy for credit card month/year validation. Thanks, Seth.

    2009-09-16 23:22:20 UTC by nobody

  • formencode should warn if field name is equal to 'view'

    I just started using formencode today. Just my luck: I named my validator variable 'view': class ProjectForm(formencode.Schema): """Base class, and used for new projects""" allow_extra_fields = True filter_extra_fields = False ignore_key_missing = False view = formencode.validators.Int(not_empty=True) I spent hours trying to figure out why my validator was being...

    2009-09-07 03:31:04 UTC by nobody

  • Comment: Invalid is not (un)pickleable

    Please pass all constructor arguments to Exception.__init__: def __init__(self, msg, value, state, etc=None): Exception.__init__(self, msg, value, state, etc) # ...

    2009-08-25 12:25:16 UTC by nobody

  • Invalid is not (un)pickleable

    per http://bugs.python.org/issue1692335.

    2009-08-25 12:16:38 UTC by nobody

  • Comment: prefix_error=False Does Not Work with File Fields

    I also confirm this bug when using FieldStorageUploadConverter validator == How to reproduce == Create a shema like this : class ImageForm(formencode.Schema): allow_extra_fields = True filter_extra_fields = True image_file = FieldStorageUploadConverter(not_empty=True) Then add the validator to the controler like : @validate(schema=forms.ImageForm(), form="new"...

    2009-07-24 13:36:13 UTC by miniwark

Our Numbers