diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-09-17 19:31:24 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-09-17 19:31:24 +0000 |
| commit | 51d623d4692616536e9879ddd9c1145cab210aeb (patch) | |
| tree | 835253c4e1e98b5a61581b08cc8791e0c0e1fa25 /lib/sqlalchemy | |
| parent | 4a98ddde1676d91b9eadf9b59de11c132c1abf4f (diff) | |
| download | sqlalchemy-51d623d4692616536e9879ddd9c1145cab210aeb.tar.gz | |
- Added label() method to InstrumentedAttribute
to establish forwards compatibility with 0.5.
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index fb0621a70..331ba3659 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -52,6 +52,9 @@ class InstrumentedAttribute(interfaces.PropComparator): def expression_element(self): return self.comparator.expression_element() + def label(self, name): + return self.clause_element().label(name) + def operate(self, op, *other, **kwargs): return op(self.comparator, *other, **kwargs) |
