summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-02 15:29:31 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-02 15:29:31 -0400
commite616c2fb3cbc1f2fb7102f3fa666439c688e48b7 (patch)
tree7b635c217af1bf675956dbfd9ce27a679249060c /lib/sqlalchemy/sql
parentb2c0b50bbfa43f662afd16b7ca51bcfe17e4c351 (diff)
downloadsqlalchemy-e616c2fb3cbc1f2fb7102f3fa666439c688e48b7.tar.gz
- if @classproperty is used with a regular class-bound
mapper property attribute, it will be called to get the actual attribute value during initialization. Currently, there's no advantage to using @classproperty on a column or relationship attribute of a declarative class that isn't a mixin - evaluation is at the same time as if @classproperty weren't used. But here we at least allow it to function as expected. - docs for column_property() with declarative - mixin docs in declarative made more clear - mixins are optional - each subsection starts with, "in *declarative mixins*", to reduce confusion
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py
index 050b5c05b..96147a94a 100644
--- a/lib/sqlalchemy/sql/expression.py
+++ b/lib/sqlalchemy/sql/expression.py
@@ -1813,7 +1813,7 @@ class ColumnElement(ClauseElement, _CompareMixin):
else:
name = str(self)
co = ColumnClause(self.anon_label, selectable, type_=getattr(self, 'type', None))
-
+
co.proxies = [self]
selectable.columns[name] = co
return co