summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/mapper.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-22 15:46:09 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-22 15:46:09 -0400
commit81c1ec33e37c23be58285d4ef607de9b670c547f (patch)
tree79de1a35338b12b5856add0c579b67e14685e35d /lib/sqlalchemy/orm/mapper.py
parent62b2955c7a2bc928de3a35ab1494c5d2e2197a68 (diff)
downloadsqlalchemy-81c1ec33e37c23be58285d4ef607de9b670c547f.tar.gz
- rename .attr to .attrs on mapper, instance state, [ticket:2569]
Diffstat (limited to 'lib/sqlalchemy/orm/mapper.py')
-rw-r--r--lib/sqlalchemy/orm/mapper.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 45124127a..4269e332f 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -1492,14 +1492,14 @@ class Mapper(_InspectionAttr):
yield c
@util.memoized_property
- def attr(self):
+ def attrs(self):
"""A namespace of all :class:`.MapperProperty` objects
associated this mapper.
This is an object that provides each property based on
its key name. For instance, the mapper for a
``User`` class which has ``User.name`` attribute would
- provide ``mapper.attr.name``, which would be the
+ provide ``mapper.attrs.name``, which would be the
:class:`.ColumnProperty` representing the ``name``
column. The namespace object can also be iterated,
which would yield each :class:`.MapperProperty`.
@@ -1522,7 +1522,7 @@ class Mapper(_InspectionAttr):
See also:
- :attr:`.Mapper.attr` - namespace of all :class:`.MapperProperty`
+ :attr:`.Mapper.attrs` - namespace of all :class:`.MapperProperty`
objects.
"""
@@ -1535,7 +1535,7 @@ class Mapper(_InspectionAttr):
See also:
- :attr:`.Mapper.attr` - namespace of all :class:`.MapperProperty`
+ :attr:`.Mapper.attrs` - namespace of all :class:`.MapperProperty`
objects.
"""
@@ -1548,7 +1548,7 @@ class Mapper(_InspectionAttr):
See also:
- :attr:`.Mapper.attr` - namespace of all :class:`.MapperProperty`
+ :attr:`.Mapper.attrs` - namespace of all :class:`.MapperProperty`
objects.
"""
@@ -1561,7 +1561,7 @@ class Mapper(_InspectionAttr):
See also:
- :attr:`.Mapper.attr` - namespace of all :class:`.MapperProperty`
+ :attr:`.Mapper.attrs` - namespace of all :class:`.MapperProperty`
objects.
"""