- changed status to resolved
association proxy docs
Issue #1224
resolved
Q: 1) First, a typo. In section "Simplifying Association Object
Relations": "Because the proxies are backed a regular relation
collection" should have the word "by" or similar following "backed".
A: indeed.
Q: 2) In section "Building Complex Views"
print broker.holdings[stock](stock).shares
# 10
Isn't holdings[stock](stock) the share value? Ie. shouldn't this just be
print broker.holdings[stock](stock)
?
A: im going to go out on a limb here since I did not write these docs and suggest it should say:
broker.by_stock[stock](stock) = Holding(broker, stock, 10)
print broker.by_stock[stock](stock).shares
to illustrate non-association proxy usage, before the next blurb that describes the association proxy usage.
Q: 3) The title "Simplifying Association Object Relations" appears twice
in
http://www.sqlalchemy.org/docs/05/plugins.html#plugins_associationproxy
A: oh, this is an indexing issue in the file....many fixes to be made (note to fixers - needs {@name=sectionname} )
Comments (2)
-
reporter -
reporter - removed milestone
Removing milestone: 0.5.0 (automated comment)
- Log in to comment
I wasn't sure if I heard that new associationproxy docs were under way, but the issues here are fixed in 7e57e282c5299efe850eb79541c9a7e8a93cd90d be0c5e4a0ba227512771c6f579fac2d6adfbb721.