diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-12-02 05:59:50 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-12-02 05:59:50 +0000 |
commit | a97a1fcad41a3cbcbc7d3957b6229f39258fd7ed (patch) | |
tree | 56f6d2b1a60da2376af6cae407074da786f3bf98 /lib/sqlalchemy/topological.py | |
parent | 0ab287b0394d4d5b42feb23267c3a589f1e9d438 (diff) | |
download | sqlalchemy-a97a1fcad41a3cbcbc7d3957b6229f39258fd7ed.tar.gz |
- added "remote_side" argument to relation(), used only with self-referential
mappers to force the direction of the parent/child relationship. replaces
the usage of the "foreignkey" parameter for "switching" the direction;
while "foreignkey" can still be used to "switch" the direction of a parent/
child relationship, this usage is deprecated; "foreignkey" should always
indicate the actual foreign key columns from now on.
Diffstat (limited to 'lib/sqlalchemy/topological.py')
-rw-r--r-- | lib/sqlalchemy/topological.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/topological.py b/lib/sqlalchemy/topological.py index 5bd691f31..9d8c7280b 100644 --- a/lib/sqlalchemy/topological.py +++ b/lib/sqlalchemy/topological.py @@ -116,7 +116,8 @@ class _EdgeCollection(object): yield (parent, child) def __str__(self): return repr(list(self)) - + def __repr__(self): + return repr(list(self)) class QueueDependencySorter(object): """topological sort adapted from wikipedia's article on the subject. it creates a straight-line |