diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-09 19:42:01 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-09 19:42:01 -0500 |
| commit | 546015e6e147130c4f21c87ec9e1537d9f71c3fb (patch) | |
| tree | c7b6cd29f5ee774f8fdd9acbdafcfa12601473d2 /examples/generic_associations/table_per_association.py | |
| parent | b03961b8243fa731fdcdbaffa7acd3c718fba0d9 (diff) | |
| download | sqlalchemy-546015e6e147130c4f21c87ec9e1537d9f71c3fb.tar.gz | |
- add a new sphinx extension "viewsource". takes advantage of part of the 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.
Diffstat (limited to 'examples/generic_associations/table_per_association.py')
| -rw-r--r-- | examples/generic_associations/table_per_association.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/generic_associations/table_per_association.py b/examples/generic_associations/table_per_association.py index 4cdc35494..4993492a4 100644 --- a/examples/generic_associations/table_per_association.py +++ b/examples/generic_associations/table_per_association.py @@ -1,8 +1,9 @@ """table_per_association.py -The HasAddresses mixin will provide a new "address_association" table for -each parent class. The "address" table will be shared -for all parents. +Illustrates a mixin which provides a generic association +via a individually generated association tables for each parent class. +The associated objects themselves are persisted in a single table +shared among all parents. This configuration has the advantage that all Address rows are in one table, so that the definition of "Address" |
