equal
deleted
inserted
replaced
224 ...................... |
224 ...................... |
225 |
225 |
226 * `SizeConstraint`: allows to specify a minimum and/or maximum size on |
226 * `SizeConstraint`: allows to specify a minimum and/or maximum size on |
227 string (generic case of `maxsize`) |
227 string (generic case of `maxsize`) |
228 |
228 |
229 * `BoundConstraint`: allows to specify a minimum and/or maximum value |
229 * `BoundaryConstraint`: allows to specify a minimum and/or maximum value |
230 on numeric types and date |
230 on numeric types and date |
231 |
231 |
232 .. sourcecode:: python |
232 .. sourcecode:: python |
233 |
233 |
234 from yams.constraints import BoundConstraint, TODAY |
234 from yams.constraints import BoundaryConstraint, TODAY |
235 BoundConstraint('<=', TODAY()) |
235 BoundaryConstraint('<=', TODAY()) |
236 |
236 |
237 * `IntervalBoundConstraint`: allows to specify an interval with |
237 * `IntervalBoundConstraint`: allows to specify an interval with |
238 included values |
238 included values |
239 |
239 |
240 .. sourcecode:: python |
240 .. sourcecode:: python |