[PEAK] Validation framework?
Phillip J. Eby
pje at telecommunity.com
Mon Dec 1 12:14:34 EST 2003
At 10:38 AM 12/1/03 -0600, Ian Bicking wrote:
>On Nov 27, 2003, at 4:18 PM, Victor Ng wrote:
>>Back December there was some talk about getting a model validation
>>framework in place:
>>
>>http://www.eby-sarna.com/pipermail/peak/2002-December/000252.html
>>
>>Has there been progress on that front?
>
>You might want to look at FormEncode (http://formencode.org) -- it still
>has some feature gaps, and I haven't made a proper release yet, but it
>might fit the bill. The validation stuff is is fairly good shape, though
>you'll need some glue to get it working (hopefully not too much).
From the docs, it would appear that peak.model types would be usable with
FormEncode as an IValidator, using either mdl_fromString() or
mdl_fromFields() and mdl_normalize(). But there would need to be an
adapter class or two.
More information about the PEAK
mailing list