association proxy docs

Issue #1224 resolved
Mike Bayer repo owner created an issue
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)

  1. Log in to comment