sebastian at urbantalk.se
Tue Aug 11 07:35:42 EDT 2009
You would normally do this in the interface and have the edit/add
views enforce the data integrity. If this solves your problem you
could look at this document:
10 aug 2009 kl. 18.47 skrev Thomas Bellembois:
> Where can we find a documentation about validators ? How can we
> create a custom validator to overide the default validator ?
> I have a container "Molecule" with 4 fields:
> class Molecule(grok.Container):
> cas_number = u''
> ce_number = u''
> remark = u'--'
> and I have added a drop down list in the default template file to
> add another field (like a foreign key). I would like this drop down
> list to be a required field.
> Thanks for your help.
> Grok-dev mailing list
> Grok-dev at zope.org
More information about the Grok-dev