> seems like you've found a very very old tutorial on the web somewhere
> (and by old I mean, about two years out of date).  The official SA ORM
> tutorial is here:  http://www.sqlalchemy.org/docs/04/ormtutorial.html

I'm reading too many docs at once lol  :)

Anyway at last I've figured out how to do (just for completness)

controllers.py
***************
rs = session.query(model.User).filter(model.User.user_id==1)

        return dict(rs=rs)


template
*************
    <ul>
      <li py:for="r in rs">
        Username: <strong>${r.name}</strong>
                <ol>
                  <li py:for="e in r.addresses"> Address: <em>$
{e.address}</em></li>
                </ol>
      </li>
    </ul>


Thanks!

P.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to