doc/book/en/devrepo/datamodel/definition.rst
changeset 9255 46f41c3e1443
parent 8125 7070250bf50d
child 9320 15bd24f9b9e0
equal deleted inserted replaced
9254:e1369f2dba79 9255:46f41c3e1443
   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