diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-09-07 01:31:01 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-09-07 01:31:01 +0000 |
commit | cc0dcca7b4bf3ad05630c92012be715c6e515aaf (patch) | |
tree | 7920dfb3cae4a87560956345e214ff3122359bfd | |
parent | 36570c6595e57263863f5f59785fa613fdeb6649 (diff) | |
download | sqlalchemy-cc0dcca7b4bf3ad05630c92012be715c6e515aaf.tar.gz |
- Removed conflicting `contains()` operator from
`InstrumentedAttribute` which didn't accept `escape` kwaarg
[ticket:1153].
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 8 |
2 files changed, 4 insertions, 8 deletions
@@ -116,6 +116,10 @@ CHANGES - The `echo_uow` flag on `Session` is deprecated, and unit-of-work logging is now application-level only, not per-session level. + - Removed conflicting `contains()` operator from + `InstrumentedAttribute` which didn't accept `escape` kwaarg + [ticket:1153]. + - declarative - Fixed bug whereby mapper couldn't initialize if a composite primary key referenced another table that was not defined diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index 495d22be1..631d3f582 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -442,10 +442,6 @@ class PropComparator(expression.ColumnOperators): raise NotImplementedError("%r" % self) @staticmethod - def contains_op(a, b): - return a.contains(b) - - @staticmethod def any_op(a, b, **kwargs): return a.any(b, **kwargs) @@ -480,10 +476,6 @@ class PropComparator(expression.ColumnOperators): return self.operate(PropComparator.of_type_op, class_) - def contains(self, other): - """Return true if this collection contains other""" - return self.operate(PropComparator.contains_op, other) - def any(self, criterion=None, **kwargs): """Return true if this collection contains any member that meets the given criterion. |