diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-17 21:11:59 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-17 21:11:59 +0000 |
commit | 0e599da0cfd64c0921ba31bb8957aa5d409318c0 (patch) | |
tree | 0536e029b8d1427266848ade572a1ae9845b5bd6 /lib/sqlalchemy/util.py | |
parent | a1e12ea16f79d8b72420138e8ab53fcf61993698 (diff) | |
download | sqlalchemy-0e599da0cfd64c0921ba31bb8957aa5d409318c0.tar.gz |
identified more issues with inheritance. mapper inheritance is more closed-minded about how it creates the join crit
erion as well as the sync rules in inheritance. syncrules have been tightened up to be smarter about creating a new
SyncRule given lists of tables and a join clause. properties also checks for relation direction against the "noninherited table" which for the moment makes it a stronger requirement that a relation to a mapper must relate to that mapper's main table, not any tables that it inherits from.
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r-- | lib/sqlalchemy/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index 98d3a70f1..85bbfdc5a 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -255,6 +255,8 @@ class HashSet(object): return self.map.has_key(item) def clear(self): self.map.clear() + def intersection(self, l): + return HashSet([x for x in l if self.contains(x)]) def empty(self): return len(self.map) == 0 def append(self, item): |