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

« back to all changes in this revision

Viewing changes to examples/versioning/history_meta.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:
158
158
        for prop in obj_mapper.iterate_properties:
159
159
            if isinstance(prop, RelationshipProperty) and \
160
160
                attributes.get_history(obj, prop.key).has_changes():
161
 
                obj_changed = True
162
 
                break
 
161
                for p in prop.local_columns:
 
162
                    if p.foreign_keys:
 
163
                        obj_changed = True
 
164
                        break
 
165
                if obj_changed is True:
 
166
                    break
163
167
 
164
168
    if not obj_changed and not deleted:
165
169
        return