Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 246 lines (165 sloc) 7.935 kb
35fb6f5b »
2010-03-11 Add partial work towards schema / validation / serialization / deseri…
1 Changes
2 =======
3
206cc49e »
2010-06-09 prep for 0.7.0
4 0.7.0
5 -----
6
7 A release centered around normalizing the treatment of default and
8 missing values.
9
10 Bug Fixes
11 ~~~~~~~~~
12abbf7f »
2010-05-09 - Allow ``colander.Regex`` validator to accept a pattern object
12
13 - Allow ``colander.Regex`` validator to accept a pattern object
14 instead of just a string.
15
3655ee98 »
2010-05-13 - Get rid of circular reference in Invalid exceptions: Invalid
16 - Get rid of circular reference in Invalid exceptions: Invalid
17 exceptions now no longer have a ``parent`` attribute. Instead, they
18 have a ``positional`` attribute, which signifies that the parent
19 node type of the schema node to which they relate inherits from
20 Positional. This attribute isn't an API; it's used only internally
21 for reporting.
22
2bc84d14 »
2010-05-27 - Raise a ``TypeError`` when bogus keyword arguments are passed to
23 - Raise a ``TypeError`` when bogus keyword arguments are passed to
24 ``colander.SchemaNode``.
25
206cc49e »
2010-06-09 prep for 0.7.0
26 Backwards Incompatiblities / New Features
27 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28
f8dee4f9 »
2010-06-09 simplify defaulting
29 - ``missing`` constructor arg to SchemaNode: signifies
30 *deserialization* default, disambiguated from ``default`` which acted
31 as both serialization and deserialization default previously.
32
33 Changes necessitated / made possible by SchemaNode ``missing``
34 addition:
35
36 - The ``allow_empty`` argument of the ``colander.String`` type was
37 removed (use ``missing=''`` as a wrapper SchemaNode argument
38 instead).
39
40 - New concept: ``colander.null`` input to serialization and
206cc49e »
2010-06-09 prep for 0.7.0
41 deserialization. Use of ``colander.null`` normalizes serialization
f8dee4f9 »
2010-06-09 simplify defaulting
42 and deserialization default handling.
43
44 Changes necessitated / made possible by ``colander.null`` addition:
45
46 - ``partial`` argument and attribute of colander.MappingSchema has
47 been removed; all serializations are partial, and partial
48 deserializations are not necessary.
49
50 - ``colander.null`` values are added to the cstruct for partial
51 serializations instead of omitting missing node values from
52 the cstruct.
53
54 - ``colander.null`` may now be present in serialized and
55 deserialized data structures.
56
57 - ``sdefault`` attribute of SchemaNode has been removed; we never need
58 to serialize a default anymore.
59
60 - The value ``colander.null`` will be passed as ``appstruct`` to
61 each type's ``serialize`` method when a mapping appstruct doesn't
62 have a corresponding key instead of ``None``, as was the practice
63 previously.
64
65 - The value ``colander.null`` will be passed as ``cstruct`` to
66 each type's ``deserialize`` method when a mapping cstruct
67 doesn't have a corresponding key instead of ``None``, as was the
68 practice previously.
69
70 - Types now must handle ``colander.null`` explicitly during
71 serialization.
72
73 - Updated and expanded documentation, particularly with respect to new
74 ``colander.null`` handling.
75
76 - The ``value`` argument`` to the ``serialize`` method of a SchemaNode
77 is now named ``appstruct``. It is no longer a required argument; it
78 defaults to ``colander.null`` now.
79
80 The ``value`` argument to the ``deserialize`` method of a SchemaNode
81 is now named ``cstruct``. It is no longer a required argument; it
82 defaults to ``colander.null`` now.
83
84 - The ``value`` argument to the ``serialize`` method of each built-in
85 type is now named ``appstruct``, and is now required: it is no
86 longer a keyword argument that has a default.
87
88 The ``value`` argument to the ``deserialize`` method of each
89 built-in type is now named ``cstruct``, and is now required: it is
90 no longer a keyword argument that has a default.
eb67c21c »
2010-06-02 Work towards fixing defaults issue brought up by Chris Shenton
91
0367d5dd »
2010-05-08 Prep for 0.6.2.
92 0.6.2 (2010-05-08)
93 ------------------
4eefbb5f »
2010-05-08 - The default ``encoding`` parameter value to the ``colander.String``
94
95 - The default ``encoding`` parameter value to the ``colander.String``
96 type is still ``None``, however its meaning has changed. An
97 encoding of ``None`` now means that no special encoding and decoding
98 of Unicode values is done by the String type. This differs from the
99 previous behavior, where ``None`` implied that the encoding was
100 ``utf-8``. Pass the encoding as ``utf-8`` specifically to get the
cc9f8c40 »
2010-05-08 More tweaks in support of Deform.
101 older behavior back. This is in support of Deform.
102
103 - The default ``err_template`` value attached to the ``colander.Date``
206cc49e »
2010-06-09 prep for 0.7.0
104 and ``colander.Datetime`` types was changed. It is now simply
cc9f8c40 »
2010-05-08 More tweaks in support of Deform.
105 ``Invalid date`` instead of ``_('${val} cannot be parsed as an
106 iso8601 date: ${err}')``. This is in support of Deform.
4eefbb5f »
2010-05-08 - The default ``encoding`` parameter value to the ``colander.String``
107
34b37481 »
2010-05-08 Make tests pass again.
108 - Fix bug in ``colander.Boolean`` that attempted to call ``.lower`` on
109 a bool value when a default value was found for the schema node.
110
f61417d1 »
2010-05-04 Prep for 0.6.1.
111 0.6.1 (2010-05-04)
112 ------------------
44adcc5f »
2010-05-04 - Add a Decimal type (decimal floating point).
113
f61417d1 »
2010-05-04 Prep for 0.6.1.
114 - Add a Decimal type (number type which uses ``decimal.Decimal`` as a
115 deserialization target).
44adcc5f »
2010-05-04 - Add a Decimal type (decimal floating point).
116
d3bb8048 »
2010-05-02 - Add minimal documentation about the composition of a
117 0.6.0 (2010-05-02)
118 ------------------
257b3b7a »
2010-04-26
119
605f1489 »
2010-04-26 - (Hopefully) fix intermittent datetime-granularity-related test
120 - (Hopefully) fix intermittent datetime-granularity-related test
121 failures.
122
257b3b7a »
2010-04-26
123 - Internationalized error messages. This required some changes to
124 error message formatting, which may impact you if you were feeding
125 colander an error message template.
126
57cdb855 »
2010-05-02 tweak
127 - New project dependency: ``translationstring`` package for
128 internationalization.
d3bb8048 »
2010-05-02 - Add minimal documentation about the composition of a
129
7ac04ee4 »
2010-05-02 - New argument to ``colander.String`` constructor: ``allow_empty``.
130 - New argument to ``colander.String`` constructor: ``allow_empty``.
131 This is a boolean representing whether an empty string is a valid
132 value during deserialization, defaulting to ``False``.
133
d3bb8048 »
2010-05-02 - Add minimal documentation about the composition of a
134 - Add minimal documentation about the composition of a
135 colander.Invalid exception to the narrative docs.
136
137 - Add (existing, but previously non-API) colander.Invalid attributes
138 to its interface within the API documentation.
139
54aadac4 »
2010-04-09 Prep for 0.5.2.
140 0.5.2 (2010-04-09)
141 ------------------
782d8998 »
2010-04-02 - Fix bug in serialization of non-Unicode values in the ``String`` cl…
142
40432fbd »
2010-04-05 Typo.
143 - Add Email and Regex validators (courtesy Steve Howe).
68d49269 »
2010-04-05 - Add Email and Regex validators.
144
cb8b9d0c »
2010-04-04 - Raise a ``colander.Invalid`` error if a ``colander.SequenceSchema``
145 - Raise a ``colander.Invalid`` error if a ``colander.SequenceSchema``
146 is created with more than one member.
147
d4c62f4e »
2010-04-04 - Add ``Function`` validator.
148 - Add ``Function`` validator.
149
782d8998 »
2010-04-02 - Fix bug in serialization of non-Unicode values in the ``String`` cl…
150 - Fix bug in serialization of non-Unicode values in the ``String`` class.
151
62f6252c »
2010-04-03 - Get rid of ``pserialize`` in favor of making ``serialize`` always
152 - Get rid of ``pserialize`` in favor of making ``serialize`` always
153 partially serialize.
154
155 - Get rid of ``pdeserialize``: it existed only for symmetry. We'll
156 add something like it back later if we need it.
157
2686ec79 »
2010-04-02 Prep for 0.5.1.
158 0.5.1 (2010-04-02)
159 ------------------
6b8c5000 »
2010-04-01 - The constructor arguments to a the ``colander.Schema`` class are now
160
161 - The constructor arguments to a the ``colander.Schema`` class are now
162 sent to the constructed SchemaNode rather than to the type it represents.
163
6653b212 »
2010-04-01 - Allow ``colander.Date`` and ``colander.DateTime`` invalid error
164 - Allow ``colander.Date`` and ``colander.DateTime`` invalid error
165 messages to be customized.
166
507ac4b3 »
2010-04-01 - Add a ``pos`` argument to the ``colander.Invalid.add`` method.
167 - Add a ``pos`` argument to the ``colander.Invalid.add`` method.
168
169 - Add a ``__setitem__`` method to the ``colander.Invalid`` class.
170
e82bc8df »
2010-04-02 Fix bug where pserialize was not serializing default properly.
171 - The ``colander.Mapping`` constructor keyword argument
172 ``unknown_keys`` has been renamed to ``unknown``.
b97ef0fb »
2010-04-02 - New interface methods required by types and schema nodes:
173
92751842 »
2010-04-02 - Allow ``colander.Mapping`` type to accept a new constructor
174 - Allow ``colander.Mapping`` type to accept a new constructor
b97ef0fb »
2010-04-02 - New interface methods required by types and schema nodes:
175 argument: ``partial``.
92751842 »
2010-04-02 - Allow ``colander.Mapping`` type to accept a new constructor
176
b97ef0fb »
2010-04-02 - New interface methods required by types and schema nodes:
177 - New interface methods required by types and schema nodes:
178 ``pserialize`` and ``pdeserialize``. These partially serialize or
179 partially deserialize a value (the definition of "partial" is up to
180 the type).
92751842 »
2010-04-02 - Allow ``colander.Mapping`` type to accept a new constructor
181
036a108b »
2010-03-31 Prep for 0.5.
182 0.5 (2010-03-31)
183 ----------------
184
185 - 0.4 was mispackaged (CHANGES.txt missing); no code changes from 0.4
186 however.
187
2f8c3e2d »
2010-03-31 Prep for 0.4.
188 0.4 (2010-03-30)
189 ----------------
27b12a10 »
2010-03-30 - Add ``colander.DateTime`` and ``colander.Date`` data types.
190
191 - Add ``colander.DateTime`` and ``colander.Date`` data types.
192
193 - Depend on the ``iso8601`` package for date support.
194
17540516 »
2010-03-29 Prep for 0.3.
195 0.3 (2010-03-29)
196 ----------------
de703409 »
2010-03-24 - Add ``colander.Length`` validator class.
197
cf3f90a0 »
2010-03-26 - Subnodes of a schema node are now kept in the ``children`` attribute
198 - Subnodes of a schema node are now kept in the ``children`` attribute
199 rather than the ``nodes`` attribute.
200
a9d94df9 »
2010-03-26 - Add an ``sdefault`` property to ``colander.SchemaNode`` objects.
201 - Add an ``sdefault`` property to ``colander.SchemaNode`` objects.
202
c326bb55 »
2010-03-26 - Add a ``clone`` method to ``colander.SchemaNode`` objects.
203 - Add a ``clone`` method to ``colander.SchemaNode`` objects.
204
a2a8b5a6 »
2010-03-26 - Add a ``__str__`` method to the ``colander.Invalid`` exception that
205 - Add a ``__str__`` method to the ``colander.Invalid`` exception that
206 prints an error summary.
207
822cbd1a »
2010-03-26 - Various error message improvements.
208 - Various error message improvements.
209
de703409 »
2010-03-24 - Add ``colander.Length`` validator class.
210 - Add ``colander.Length`` validator class.
211
380a88a7 »
2010-03-23 Prep for 0.2
212 0.2 (2010-03-23)
213 ----------------
214
215 - Make nodetype overrideable.
216
217 - Add __getitem__ to SchemaNode.
218
219 - Fix OneOf message.
220
221 - Capitalize node titles.
222
223 - Deal with empty strings in String, Boolean, and Float types.
224
225 - Introduce description; make title the same as name.
226
227 - Remove copy method from schemanode.
228
229 - Allow schema nodes to have titles.
230
231 - The term "structure" is too overloaded to use for schema purposes:
232 structure -> schema node.
233
234 - Make Sequence more like Tuple and Mapping (it uses a substructure
235 rather than a structure parameter to denote its type).
236
237 - Add __repr__ and copy methods to structure.
238
239 - Add accept_scalar flag to Sequence.
240
241
aecc474b »
2010-03-14 Prep for 0.1.
242 0.1 (2010-03-14)
35fb6f5b »
2010-03-11 Add partial work towards schema / validation / serialization / deseri…
243 ----------------
244
245 - Initial release.
Something went wrong with that request. Please try again.