]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- reST fixes
authorJason Kirtland <jek@discorporate.us>
Tue, 18 Mar 2008 03:05:34 +0000 (03:05 +0000)
committerJason Kirtland <jek@discorporate.us>
Tue, 18 Mar 2008 03:05:34 +0000 (03:05 +0000)
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/orm/__init__.py

index 7f30a7374e79379163238e77cc646dcd4c8f9dcf..77c6a7684eb19a8ac59b47d6231758f4d6ddd316 100644 (file)
@@ -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
index 1384bdccf672d1392a478635bd982467bdc86c73..c30e96b0131a6c56b5a5e9d0fb17a7daae535f78 100644 (file)
@@ -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.