File python-formencode.changes of Package python-formencode
1
-------------------------------------------------------------------
2
Sun Jun 7 00:01:01 CEST 2009 - lars@linux-schulserver.de
3
4
- disable runtime dependency to python-setuptools
5
6
-------------------------------------------------------------------
7
Mon Apr 27 17:51:38 CEST 2009 - lars@linux-schulserver.de
8
9
- update to 1.2.2
10
- remove FormEncode-1.2-svn-fixes.patch
11
- added rpmlintrc
12
13
-------------------------------------------------------------------
14
Sun Dec 14 00:00:00 CET 2008 - jfunk@funktronics.ca
15
16
- Apply some fixes from SVN
17
18
-------------------------------------------------------------------
19
Wed Dec 03 00:00:00 CET 2008 - jfunk@funktronics.ca
20
21
- Update to 1.2
22
* Added :class:`formencode.validators.IPAddress`, validating IP
23
addresses, from Leandro Lucarella.
24
* Added :meth:`formencode.api.Invalid.__unicode__`
25
* In :mod:`formencode.htmlfill` use a default encoding of utf8 when
26
handling mixed ``str``/``unicode`` content. Also do not modify
27
``<input type="image">`` tags (previously ``src`` would be
28
overwritten, for no good reason).
29
* In :class:`formencode.validators.Email` allow single-character
30
domain names (like x.com).
31
* Make :class:`formencode.validators.FieldsMatch` give a normal
32
``Invalid`` exception if you pass it a non-dictionary. Also treat
33
all missing keys as the empty string (previously the first key was
34
required and would raise KeyError).
35
* :class:`formencode.validators.Number` works with ``inf`` float
36
values (before it would raise a OverflowError).
37
* The ``tw`` locale has been renamed to the more standard ``zh_TW``.
38
* Added Japanese and Turkish translations.
39
* Fixed some outdated translations and errors in Spanish and Greek
40
translations. Translations now managed with `Babel
41
<http://babel.edgewall.org/>`_.
42
- 1.1
43
* Fixed the ``is_empty()`` method in
44
:class:`formencode.validators.FieldStorageUploadConverter`;
45
previously it returned the opposite of the intended result.
46
* Added a parameter to ``htmlfill.render()``: ``prefix_error``. If
47
this parameter is true (the default) then errors automatically go
48
before the input field; if false then they go after the input field.
49
* Remove deprecated modules: ``fields``, ``formgen``, ``htmlform``,
50
``sqlformgen``, and ``sqlschema``.
51
* Added ``formencode.htmlrename``, which renames HTML inputs.
52
* In ``formencode.htmlfill``, non-string values are compared usefully
53
(e.g., a select box with integer values).
54
* The validators ``Int`` and ``Number`` both take min/max arguments
55
(from Shannon Behrens).
56
* Validators based on ``formencode.validators.FormValidator`` will not
57
treat ``{}`` as an empty (unvalidated) value.
58
* Some adjustments to the URL validator.
59
* :class:`formencode.compound.All` does not handle empty values,
60
instead relying on sub-validators to check for emptiness.
61
* Fixed the ``if_missing`` attribute in
62
:class:`formencode.foreach.ForEach`; previously it would be the same
63
list instance, so if you modified it then it would effect future
64
``if_missing`` values (reported by Felix Schwarz).
65
* Added formatter to :mod:`formencode.htmlfill`, so you can use
66
``<form:error name="field_name" formatter="ignore" />`` -- this will
67
cause the error to be swallowed, not shown to the user.
68
* Added :class:`formencode.validators.XRI` for validation i-names,
69
i-numbers, URLs, etc (as used in OpenID).
70
* Look in ``/usr/share/locale`` for locale files, in addition to the
71
normal locations.
72
* Quiet Python 2.6 deprecation warnings.
73
* Fix :class:`formencode.validators.URL`, which was accepting illegal
74
characters (like newlines) and did not accept http://domain:PORT/
75
- 1.0.1
76
* ``chained_validators`` were removed from Schema somehow; now
77
replaced and working.
78
* Put in missing ``htmlfill.render(error_class=...)`` parameter (was
79
documented and implemented, but ``render()`` did not pass it
80
through).
81
82
-------------------------------------------------------------------
83
Tue Nov 11 00:00:00 CET 2008 - cfarrell1980@gmail.com
84
85
- try building with --record-rpm instead of --record - 1.0-1
86
87
-------------------------------------------------------------------
88
Wed Mar 19 00:00:00 CET 2008 - jfunk@funktronics.ca
89
90
- Update to 1.0
91
92
-------------------------------------------------------------------
93
Thu Dec 27 00:00:00 CET 2007 - jfunk@funktronics.ca
94
95
- Fix bad python interpreter path
96
97
-------------------------------------------------------------------
98
Tue Dec 18 00:00:00 CET 2007 - jfunk@funktronics.ca
99
100
- Update to 0.9:
101
- Backward incompatible changes
102
* The notion of "empty" has changed to include empty lists,
103
dictionaries, and tuples. If you get one of these values passed
104
into (or generated by) a validator with ``not_empty=True`` you can
105
get exceptions where you didn't previously.
106
- Enhancements
107
* Added support for Paste's MultiDict dictionary as input to
108
Schema.to_python, by converting it to a normal dict via MultiDict.mixed.
109
Previously MultiDicts wouldn't work with CompoundValidators (like
110
ForEach)
111
* Added encoding parameter to htmlfill, which will handle cases when mixed
112
str and unicode objects are used (turning all str objects into unicode)
113
* Include ``formencode.validators.InternationalPhoneNumber`` from
114
W-Mark Kubacki.
115
* ``validators.Int`` takes ``min`` and ``max`` options (from Felix
116
Schwarz).
117
* You can control the missing message (which by default is just
118
"Missing Value") using the message ``"missing"`` in a validator
119
(also from James Gardner).
120
* Added ``validators.CADR`` (for IP addresses with an optional range)
121
and ``validators.MACAddress`` (from Christoph Haas).
122
- Bug Fixes
123
* Be friendlier when loaded from a zip file (as with py2exe);
124
previously only egg zip files would work.
125
* Fixed bug in htmlfill when a document ends with no trailing text
126
after the last tag.
127
* Fix problem with HTMLParser's default unescaping routing, which only
128
understood a very limited number of entities in attribute values.
129
* Fix problem with looking up A records for email addresses.
130
* ``validators.String`` now always returns strings. It also converts
131
lists to comma-separated strings (no ``[...]``), and can encode
132
unicode if an ``encoding`` parameter is given. Empty values are
133
handled better.
134
* ``validators.UnicodeString`` properly handles non-Unicode inputs.
135
* Make ``validators.DateConverter`` serialize dates properly
136
(from James Gardner).
137
* Minor fix to setup.py to make FormEncode more friendly with
138
zc.buildout.
139
140
-------------------------------------------------------------------
141
Mon Apr 23 00:00:00 CET 2007 - jfunk@funktronics.ca
142
143
- Update to 0.7.1:
144
From 0.7.1:
145
* Set ``if_missing=()`` on ``validators.Set``, as a missing value
146
usually means empty for this value.
147
* Fix for ``Email`` validator that searches A records in addition to
148
MX records (from Jacob Smullyan).
149
* Fixes for the ``es`` locale.
150
From 0.7:
151
* **Backward compatibility issue**: Due to the addition of i18n
152
(internationalization) to FormEncode, Invalid exceptions now have
153
unicode messages. You may encounter unicode-related errors if you
154
are mixing these messages with non-ASCII ``str`` strings.
155
* gettext-enabled branch merged in
156
* Fixes `#1457145: Fails on URLs with port numbers
157
<http://sourceforge.net/tracker/index.php?func=detail&aid=1457145&group_id=91231&atid=596416>`_
158
* Fixes `#1559918 Schema fails to accept unicode errors
159
<http://sourceforge.net/tracker/index.php?func=detail&aid=1559918&group_id=91231&atid=596416>`_
160
* ``from formencode.validators import *`` will import the ``Invalid``
161
exception now.
162
* ``Invalid().unpack_errors(encode_variables=True)`` now filters out
163
None values (which ``ForEach`` can produce even for keys with no
164
errors).
165
166
-------------------------------------------------------------------
167
Mon Jan 08 00:00:00 CET 2007 - - poeml@suse.de
168
169
- update to 0.6
170
171
-------------------------------------------------------------------
172
Mon Jun 26 00:00:00 CET 2006 - jfunk@funktronics.ca
173
174
- Remove noarch
175
176
-------------------------------------------------------------------
177
Fri Jun 23 00:00:00 CET 2006 - jfunk@funktronics.ca
178
179
- No longer need pth kludge
180
181
-------------------------------------------------------------------
182
Thu Jun 22 00:00:00 CET 2006 - jfunk@funktronics.ca
183
184
- Update
185
186
-------------------------------------------------------------------
187
Thu Oct 13 00:00:00 CET 2005 - jfunk@funktronics.ca
188
189
- Initial release
190
191