Hi All

I am playing with TurboGears 2 for about a week already. So far
everything looks great and I am able to create functionality with
exceptionally small amount of neat-looking code.

At the moment I am stuck with the SQLAlchemy based relations. I want
to build simple one-to-many relationship (think User-Addresses for
example) and I can't get how to do that. Wiki20 tutorial doesn't touch
it and SQLAlchemy tutorial at 
http://www.sqlalchemy.org/docs/05/ormtutorial.html#building-a-relation
seems to be based on a functionality not yet supported (not
recommended?) by TG yet. I was able to find some topics about similar
things in this group, but it looks like TG and SQLAlchemy evolve
faster, than tutorials and discussions :)

Could anybody, please, post a simple one to many model example?
Something that would allow accessing addresses e.g. via the following:
>>> jack = User('jack')
>>> jack.addresses
[]


Best regards,
Artem.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to