[web2py] Re: Need help understanding a line of code

2012-02-17 Thread davidkw
Thank you! On Feb 17, 8:08 pm, Anthony wrote: > > Hi, I'm going through the web2py tutorial and I don't understand part > > of this line: > > > db.comment.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s') > > > I understand that this requires that the image ID of the image the > > commen

[web2py] Re: Need help understanding a line of code

2012-02-17 Thread Anthony
> > Hi, I'm going through the web2py tutorial and I don't understand part > of this line: > > db.comment.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s') > > I understand that this requires that the image ID of the image the > comment is under should be in the database. However, I do