diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-25 19:25:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-25 19:25:31 -0400 |
commit | 1ff666ffdf1b79433141a006486e21f3c18b1187 (patch) | |
tree | d86f1ddadb7102120df36c75ca84df94ed3759ee /lib/sqlalchemy/util.py | |
parent | a4a09a687a2030c5eb30e03151379f91cec74e97 (diff) | |
download | sqlalchemy-1ff666ffdf1b79433141a006486e21f3c18b1187.tar.gz |
- @classproperty 's official name/location for usage
with declarative is sqlalchemy.ext.declarative.mapperproperty.
Same thing, but moving there since it is more of a
"marker" that's specific to declararative,
not just an attribute technique. [ticket:1915]
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r-- | lib/sqlalchemy/util.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index 10931be5e..3b64c5ef1 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -1801,8 +1801,12 @@ class classproperty(property): """A decorator that behaves like @property except that operates on classes rather than instances. - This is helpful when you need to compute __table_args__ and/or - __mapper_args__ when using declarative.""" + The decorator is currently special when using the declarative + module, but note that the + :class:`~.sqlalchemy.ext.declarative.mapperproperty` + decorator should be used for this purpose with declarative. + + """ def __init__(self, fget, *arg, **kw): super(classproperty, self).__init__(fget, *arg, **kw) |