~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to examples/association/proxied_association.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-07-06 20:53:52 UTC
  • mfrom: (1.4.23) (16.1.17 experimental)
  • Revision ID: package-import@ubuntu.com-20130706205352-ryppl1eto3illd79
Tags: 0.8.2-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
* Upload to unstable
* Build depend on python3-all instead of -dev, extensions are not built for
  Python 3.X 

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
    # print customers who bought 'MySQL Crowbar' on sale
97
97
    orders = session.query(Order).\
98
98
                    join('order_items', 'item').\
99
 
                    filter(Item.description=='MySQL Crowbar').\
 
99
                    filter(Item.description == 'MySQL Crowbar').\
100
100
                    filter(Item.price > OrderItem.price)
101
 
    print [order.customer_name for order in orders]
 
101
    print [o.customer_name for o in orders]