[TransWarp] Constraints on model attributes
Roché Compaan
roche at upfrontsystems.co.za
Sat Jul 26 12:43:10 EDT 2003
How does one define constraints for model attributes? Last time you talked
about this was back in January.
I am very impressed by Zope 3's schema support and the ability to
generate web forms based on the schema - you can imagine that it saves a
lot of repetitive template coding. I think it is possible to do the same
with PEAK the only difference being that one will generate forms using
PEAK's model semantics.
I am very familiar with Formulator and the form generation code in Zope
3 and it would be rather trivial to implement something like it for
PEAK. Being able to define constraints for attributes on a model element
is required to validate form values.
--
Roché Compaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the PEAK
mailing list