]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The ORM will set the docstring of all generated descriptors
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Apr 2010 21:22:16 +0000 (17:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Apr 2010 21:22:16 +0000 (17:22 -0400)
commite1c47d12bf871bf30a149c7fc167d5d22ddaa222
tree94e26bd6a8d72589278548a874a7fcd54598b437
parentd057f98b8a0eb5f993bdcc7748b486fe5c31d392
- The ORM will set the docstring of all generated descriptors
to None by default.  This can be overridden using 'doc'
(or if using Sphinx, attribute docstrings work too).

- Added kw argument 'doc' to all mapper property callables
as well as Column().  Will assemble the string 'doc' as
the '__doc__' attribute on the descriptor.
CHANGES
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/schema.py
test/orm/test_mapper.py