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_custom.py?spec=svna7a27f086f9519cd6c133493eed55ffd64f9446c&r=a7a27f086f9519cd6c133493eed55ffd64f9446c#33

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/controllers/default.py?spec=svn031e8b25da62640a0f1150cd0e43e1dd86b6c975&r=031e8b25da62640a0f1150cd0e43e1dd86b6c975#122

The error seems to go away.

Thank you for any advice or suggestions.

Reply via email to