]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix maddening ReST bug
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Mar 2008 06:09:45 +0000 (06:09 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Mar 2008 06:09:45 +0000 (06:09 +0000)
lib/sqlalchemy/orm/interfaces.py

index 15f752314c52cc8136d8ac2d3db5676dd790e4b9..ef263da4c553ae82008fd9ca45a1a1cdd9c62bdf 100644 (file)
@@ -444,15 +444,17 @@ class PropComparator(expression.ColumnOperators):
     def of_type(self, class_):
         """Redefine this object in terms of a polymorphic subclass.
         
-        Returns a new PropComparator from which further criterion can be evaulated.
-        
-        class_
-          a class or mapper indicating that criterion will be against
-          this specific subclass.
-        
+        Returns a new PropComparator from which further criterion can be evaluated.
+
         e.g.::
-          query.join(Company.employees.of_type(Engineer)).\
-             filter(Engineer.name=='foo')
+        
+            query.join(Company.employees.of_type(Engineer)).\\
+               filter(Engineer.name=='foo')
+              
+        \class_
+            a class or mapper indicating that criterion will be against
+            this specific subclass.
+
          
         """