I guess you can also do: table = TABLE(*[TR(TD(movie.title), TD(UL(*[LI(star.name) for star in * movie.stars.select()*])) for movie in movies])
when a table is referenced by another, he gets a "DAL Set" object with the referer name. movie.*stars *will be a DAL Set. which has *select, update, delete* methods But it will only happens depending on your model and relations definition. Can you share your model for those 2 tables? On Tue, Aug 14, 2012 at 3:10 AM, Bruno Rocha <rochacbr...@gmail.com> wrote: > Foreach movie in movies > print movie.title > foreach stars in movie.stars > print star.name > --