diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-06 23:23:03 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-06 23:23:03 +0000 |
commit | b32ef391bbec900bec3120f02bbca9ca7fb7d7ac (patch) | |
tree | c6067c3901fd87a4b15921fb1cb03585ed51ec87 /lib/sqlalchemy | |
parent | cadc8c6d38df5a0cf5ee7495fa1ca2588470f06c (diff) | |
download | sqlalchemy-b32ef391bbec900bec3120f02bbca9ca7fb7d7ac.tar.gz |
added 'asc' and 'desc' to PropComparator....this should be placed at a lower level somehow, such
as real ASC and DESC operators
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index abaeff49c..775892da1 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -369,6 +369,12 @@ class PropComparator(sql.ColumnOperators): def expression_element(self): return self.clause_element() + def desc(self): + return self.clause_element().desc() + + def asc(self): + return self.clause_element().desc() + def contains_op(a, b): return a.contains(b) contains_op = staticmethod(contains_op) |