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 <trixiesr4k...@hotmail.com> 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
> comment is under should be in the database. However, I don't
> understand what the '%(title)s' at the end is doing.
>
> Can someone explain that? Thanks.
>



-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

Reply via email to