Part of twistar
DBObjects.| Line # | Kind | Name | Docs |
|---|---|---|---|
| 9 | Function | presenceOf | A validator to test whether or not some named properties are set. For
those named properties that are not set, an error will be recorded in
obj.errors. |
| 26 | Function | lengthOf | No summary |
| 57 | Function | uniquenessOf | A validator to test whether or not some named properties are unique. For
those named properties that are not unique, an error will be recorded in
obj.errors. |
| 84 | Class | Validator | A mixin class to handle validating objects before they are saved. |
| 190 | Class | Errors | A class to hold errors found during validation of a DBObject. |
obj.errors.| Parameters | obj | The object whose properties need to be tested. |
| names | The names of the properties to test. | |
| kwargs | Keyword arguments. Right now, all but a message value are
ignored. |
range keyword set with a range /
xrange / list object containing valid values, or
a length keyword with the exact length allowed.
For those named properties that do not have the specified length, an
error will be recorded in obj.errors.
| Parameters | obj | The object whose properties need to be tested. |
| names | The names of the properties to test. | |
| kwargs | Keyword arguments. Right now, all but message,
range, and length values are ignored. |
obj.errors.| Parameters | obj | The object whose properties need to be tested. |
| names | The names of the properties to test. | |
| kwargs | Keyword arguments. Right now, all but a message value are
ignored. |