I am not sure what the line stories=db(db.story.roadtrip[roadtrip_id]).select(orderby=db.story.title)
is supposed to do but it is invalid because the syntax is stories=db(query).select() but db.story.roadtrip[roadtrip_id] is not a query. In fact I am not sure what it is since db.story.roadtrip is a field object and it does not support the [roardtrip_ip]. That is the error. On Oct 28, 12:15 am, johntynan <[email protected]> wrote: > I have a question about using list:reference in a model on Google App > Engine. > > Here is my model: > > http://code.google.com/p/publicradioroadtrip/source/browse/models/db_... > > I am able to add records to the database just fine. The forms appear > appropriately and the many to many relationship appears properly in > the form. This all works great with web2py development server. > > However, afterward, when I attempt to display a record using GAE's dev > server I receive the error: > > KeyError: 'substring' > > http://pastie.textmate.org/1254588 > > If I comment out the line > > stories=db(db.story.roadtrip[roadtrip_id]).select(orderby=db.story.title) > > in my controller here: > > http://code.google.com/p/publicradioroadtrip/source/browse/controller... > > The error seems to go away. > > Thank you for any advice or suggestions.

