[Grok-dev] validators

Thomas Bellembois thomas.bellembois at gmail.com
Mon Aug 10 12:47:22 EDT 2009


Hello,

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):
    interface.implements(IMolecule)
    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.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20090810/1f842e7d/attachment.html 


More information about the Grok-dev mailing list