diff options
| author | Jason Kirtland <jek@discorporate.us> | 2008-03-18 03:05:34 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2008-03-18 03:05:34 +0000 |
| commit | 67fc7abe6d85bb1f6b500b47cb507082b97365d7 (patch) | |
| tree | 2cde99669abdc67f8814ae2ff46b5c305639ae15 | |
| parent | 3d5a852b1d1300310f8db47a000305bf55a28e0e (diff) | |
| download | sqlalchemy-67fc7abe6d85bb1f6b500b47cb507082b97365d7.tar.gz | |
- reST fixes
| -rw-r--r-- | lib/sqlalchemy/ext/declarative.py | 4 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/__init__.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py index 7f30a7374..77c6a7684 100644 --- a/lib/sqlalchemy/ext/declarative.py +++ b/lib/sqlalchemy/ext/declarative.py @@ -246,7 +246,7 @@ def synonym_for(name, map_column=False): A decorator version of [sqlalchemy.orm#synonym()]. The function being decoratred is the 'instrument', otherwise passes its arguments through - to synonym(). + to synonym():: @synonym_for('col') @property @@ -268,7 +268,7 @@ def comparable_using(comparator_factory): """Decorator, allow a Python @property to be used in query criteria. A decorator front end to [sqlalchemy.orm#comparable_property()], passes - throgh the comparator_factory and the function being decorated. + throgh the comparator_factory and the function being decorated:: @comparable_using(MyComparatorType) @property diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py index 1384bdccf..c30e96b01 100644 --- a/lib/sqlalchemy/orm/__init__.py +++ b/lib/sqlalchemy/orm/__init__.py @@ -598,7 +598,7 @@ def comparable_property(comparator_factory, descriptor=None): SQL constructs like a managed attribute. comparable_property wraps a descriptor with a proxy that directs operator overrides such as == (__eq__) to the supplied comparator but proxies everything else through - to the original descriptor. + to the original descriptor:: class MyClass(object): @property @@ -619,7 +619,6 @@ def comparable_property(comparator_factory, descriptor=None): for this property. descriptor - Optional when used in a ``properties={}`` declaration. The Python descriptor or property to layer comparison behavior on top of. |
