]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- if @classproperty is used with a regular class-bound
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Aug 2010 19:29:31 +0000 (15:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Aug 2010 19:29:31 +0000 (15:29 -0400)
commite616c2fb3cbc1f2fb7102f3fa666439c688e48b7
tree7b635c217af1bf675956dbfd9ce27a679249060c
parentb2c0b50bbfa43f662afd16b7ca51bcfe17e4c351
- 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
CHANGES
doc/build/mappers.rst
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/sql/expression.py
test/ext/test_declarative.py