]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
docstring tweaks
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Apr 2007 16:26:38 +0000 (16:26 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Apr 2007 16:26:38 +0000 (16:26 +0000)
doc/build/genhtml.py
lib/sqlalchemy/sql.py

index 6ebedff1c9bb0ddc9c63f2178be8c09fd2f51834..9a15eeb641c784ca8da877b020d84afb11bb6eb6 100644 (file)
@@ -12,7 +12,7 @@ import optparse
 
 files = [
     'index',
-#    'documentation',
+    'documentation',
     'tutorial',
     'dbengine',
     'metadata',
@@ -29,13 +29,14 @@ files = [
 parser = optparse.OptionParser(usage = "usage: %prog [options] [tests...]")
 parser.add_option("--file", action="store", dest="file", help="only generate file <file>")
 parser.add_option("--docstrings", action="store_true", dest="docstrings", help="only generate docstrings")
+parser.add_option("--version", action="store", dest="version", default="0.3.6", help="version string")
 
 (options, args) = parser.parse_args()
 if options.file:
     files = [file]
 
 title='SQLAlchemy 0.3 Documentation'
-version = '0.3.6'
+version = options.version
 
 root = toc.TOCElement('', 'root', '', version=version, doctitle=title)
 
index 9c327bd53d41e2375f1bcd3099a0b2356c82612f..cfe571a686e5e51e73b441ba52450e5839558657 100644 (file)
@@ -1393,19 +1393,19 @@ class ColumnElement(Selectable, _CompareMixin):
 
     primary_key = property(lambda self:getattr(self, '_primary_key', False),
                            doc=\
-        """Primary key flag.  Indicates if this Column represents part or 
-        whole of a primary key.
+        """Primary key flag.  Indicates if this ``Column`` represents part or 
+        whole of a primary key for its parent table.
         """)
     foreign_keys = property(lambda self:getattr(self, '_foreign_keys', []),
                             doc=\
-        """Foreign key accessor.  Points to a list of ForeignKey objects 
-        which represents a Foreign Key placed on this column's ultimate
+        """Foreign key accessor.  References a list of ``ForeignKey`` objects 
+        which each represent a foreign key placed on this column's ultimate
         ancestor.
         """)
     columns = property(lambda self:[self],
                        doc=\
-        """Columns accessor which just returns self, to provide compatibility 
-        with Selectable objects.
+        """Columns accessor which returns ``self``, to provide compatibility 
+        with ``Selectable`` objects.
         """)
 
     def _one_fkey(self):