It's because since your images have a reference now to your albums - that means an album can have many images. So for every record in your album table, it gets a new attribute for the image.
Take a look in the book at section 6.20. It explains it there. On Oct 21, 9:40 pm, iu_long <[email protected]> wrote: > I am a bit puzzled here. > > Lets say I have a table called Album and a table called Images. Images > has a field from_album, which points to Album.id. I have a controller > which returns all the entries in Album. > I return db(db.Album.id>0).select(). When I return it like this, there > is nothing special, but if : > > albums = db(db.Album.id>0).select() > alblist = [] > for row in albums: > alblist.append(row) > > return dict(album=alblist) > > I can reference Images like: > album.Images.id > > How come ?

