Dear Web2py users,

I have a few questions about validators, especially : when are they
necessary ?

For example, if I have like in chapter 3 (
http://www.web2py.com/book/default/chapter/03?search=image_id ) :

db.define_table('comment',
   Field('image_id', db.image))

Is "db.comment.image_id.requires = IS_IN_DB(db, db.image.id)" or even
"db.comment.image_id.requires = IS_IN_DB(db, db.image.id, '%
(title)s')" redundant ? I am asking because one could think this is
already declared in the table definition.

Thanks a lot,
Archibald

Reply via email to