From a487142f9b6d4b63270a445d5e3d7517865a00eb Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 29 Apr 2007 16:26:38 +0000 Subject: [PATCH] docstring tweaks --- doc/build/genhtml.py | 5 +++-- lib/sqlalchemy/sql.py | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/doc/build/genhtml.py b/doc/build/genhtml.py index 6ebedff1c9..9a15eeb641 100644 --- a/doc/build/genhtml.py +++ b/doc/build/genhtml.py @@ -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 ") 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) diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 9c327bd53d..cfe571a686 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -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): -- 2.47.2