On May 5, 2005, at 3:16 AM, Alen Stanisic wrote:
could I reference other fields inside the schema interface to, for example, default one field based on the value entered in one of the previous fields, or to set 'required' attribute based on previous fields entered
One way (the "approved" way) to do this is almost ready. Part of the vision of fields is that they may only validate within themselves. Interfaces are the way to make statements about groups of fields. You may make statements about interactions of fields with invariants: see zope/interface/README.txt and look for the word 'invariant'.
What we don't have yet is form machinery that checks invariants and displays the errors. This is working in our local code and will be part of Zope 3.2.
_______________________________________________ Zope3-users mailing list Zope3email@example.com http://mail.zope.org/mailman/listinfo/zope3-users