On Sun, Feb 1, 2009 at 10:17 AM, Eric Ongerth <ericonge...@gmail.com> wrote:
>
> Kevin, the default behavior is for relations to be represented by
> lists.  If what you want is a tree structure where a directory can
> only have a single parent, you would use backref=backref("parentdir",
> uselist=False).  Or at least that's how you'd do it in plain SA; i
> haven't used the declarative base yet so I don't know if there's a
> different syntax.

That seems odd, because it would seem to imply a many-to-many
relationship (requiring a secondary table).

However, I'll give your suggestion a try. Declarative is quite nice
because everything is still quite consistent with plain SA, so your
suggestion should work the same way.

Kevin

--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to