> > OK, thanks. Tricky. My exposure to classes didn't get as far as the > __call__ method. >
Crud is also a callable class and works similarly to Auth. All of the
validators are callable classes as well. When you specify the validator,
you initialize it:
Field('fruit', requires=IS_IN_SET(['apple', 'banana', 'orange']))
and during the validation process, the form processing code calls the
validator object, passing the submitted value to it.
Anthony

