summaryrefslogtreecommitdiff
path: root/examples/generic_associations
Commit message (Collapse)AuthorAgeFilesLines
* - Fixed a bug in the ↵Mike Bayer2014-11-241-0/+1
| | | | | | | | examples/generic_assocaitions/discriminator_on_association.py example, where the subclasses of AddressAssociation were not being mapped as "single table inheritance", leading to problems when trying to use the mappings further.
* - add a new sphinx extension "viewsource". takes advantage of part of the ↵Mike Bayer2013-11-095-34/+24
| | | | | | | | | viewcode extension to allow ad-hoc display of the source of any file, as well as a "directory listing" structure. - reorganize examples/ to take advantage of new extension. in particular, keep moving all the descriptive text for files etc. into module docstrings, taking more advantage of self-documentation.
* - Improved the examples in ``examples/generic_associations``, includingMike Bayer2013-07-195-48/+194
| | | | | | | | | | | | | | | that ``discriminator_on_association.py`` makes use of single table inheritance do the work with the "discriminator". Also added a true "generic foreign key" example, which works similarly to other popular frameworks in that it uses an open-ended integer to point to any other table, foregoing traditional referential integrity. While we don't recommend this pattern, information wants to be free. Also in 0.8.3. - Added a convenience class decorator :func:`.as_declarative`, is a wrapper for :func:`.declarative_base` which allows an existing base class to be applied using a nifty class-decorated approach. Also in 0.8.3.
* - the raw 2to3 runMike Bayer2013-04-273-5/+5
| | | | - went through examples/ and cleaned out excess list() calls
* whack more long lines in very old docstringsMike Bayer2013-02-021-1/+2
|
* -whitespace bonanza, contdMike Bayer2012-07-284-41/+41
|
* update docs for generic associationsMike Bayer2011-04-281-3/+10
|
* - removed the ancient "polymorphic association"Mike Bayer2011-04-274-0/+378
examples and replaced with an updated set of examples that use declarative mixins, "generic_associations". Each presents an alternative table layout.