[Product-Developers] AT form (not field) validation

2008-02-26 Thread Derek Richardson
I need to validate an invariant over multiple fields in an AT schema. There's lots of info on the web about validating individual fields and I've done that before, but info is scarce (i.e., I don't see it) about validating over multiple fields. In a z3 schema, I'd use @invariant. How can I do

Re: [Product-Developers] AT form (not field) validation

2008-02-26 Thread Hedley Roos
Override pre_validate from BaseObject.py. Look at the method - there's an errors dictionary that you can populate. ___ Product-Developers mailing list Product-Developers@lists.plone.org http://lists.plone.org/mailman/listinfo/product-developers

Re: [Product-Developers] custom at edit form?

2008-02-26 Thread Tom Lazar
hi derek, hth: http://tomster.org/blog/customizing-base_edit-using-widgets cheers, tom On Feb 26, 2008, at 7:27 PM, Derek Richardson wrote: i need to write a custom AT CT edit form. I've misplaced my copy of optilude's book. :( I've looked for the edit form for the OOTB at ct and haven't