mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-05 15:23:48 -04:00
546015e6e1
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.
18 lines
748 B
Python
18 lines
748 B
Python
"""
|
|
Illustrates various methods of associating multiple types of
|
|
parents with a particular child object.
|
|
|
|
The examples all use the declarative extension along with
|
|
declarative mixins. Each one presents the identical use
|
|
case at the end - two classes, ``Customer`` and ``Supplier``, both
|
|
subclassing the ``HasAddresses`` mixin, which ensures that the
|
|
parent class is provided with an ``addresses`` collection
|
|
which contains ``Address`` objects.
|
|
|
|
The :viewsource:`.discriminator_on_association` and :viewsource:`.generic_fk` scripts
|
|
are modernized versions of recipes presented in the 2007 blog post
|
|
`Polymorphic Associations with SQLAlchemy <http://techspot.zzzeek.org/2007/05/29/polymorphic-associations-with-sqlalchemy/>`_.
|
|
|
|
.. autosource::
|
|
|
|
""" |