I may end up coding all of the relations as you indicated, but I tried the second option as a quick fix. I substituted (DBSession.query (Alert).filter(Alert.alert_id=item_alt.alert).one().sh_desc ) for the field.
I am getting a 'keyword can't be an expression (root.py, line 239)' error. What am I missing? On Jan 18, 1:54 pm, guistebal <[email protected]> wrote: > alert.sh_desc is undefined > > You could add a relation in your model for Item_alt (->Alert) so you > could have easily access to what you need > (item_alt.my_relation_to_alert.sh_desc) > > Or you can do it the ugly way, replacing alert.sh_desc with something > like DBSession.query(Alert).filter(Alert.alert_id=item_alt.alert).one > ().sh_desc > > Christophe
-- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

