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

2012-02-17 Thread Bruce Wade
title is a field in the image table, when displayed in the form it will show the title instead of the id in the combo-box On Fri, Feb 17, 2012 at 4:02 PM, davidkw wrote: > Hi, I'm going through the web2py tutorial and I don't understand part > of this line: > > db.comment.image_id.requires = IS_

[web2py] Need help understanding a line of code

2012-02-17 Thread davidkw
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 don't understand what