~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/orm/dependency.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
                parent_in_cycles = True
155
155
 
156
156
        # now create actions /dependencies for each state.
 
157
 
157
158
        for state in states:
158
159
            # detect if there's anything changed or loaded
159
 
            # by a preprocessor on this state/attribute.  if not,
160
 
            # we should be able to skip it entirely.
 
160
            # by a preprocessor on this state/attribute.   In the
 
161
            # case of deletes we may try to load missing items here as well.
161
162
            sum_ = state.manager[self.key].impl.get_all_pending(
162
 
                state, state.dict)
 
163
                state, state.dict,
 
164
                                self._passive_delete_flag
 
165
                                        if isdelete
 
166
                                        else attributes.PASSIVE_NO_INITIALIZE)
163
167
 
164
168
            if not sum_:
165
169
                continue
741
745
                                    self.key,
742
746
                                    attributes.PASSIVE_NO_INITIALIZE)
743
747
            if history:
744
 
                for child in history.added:
745
 
                    self._synchronize(state, child, None, False,
746
 
                                            uowcommit, "add")
747
 
 
 
748
                if history.added:
 
749
                    for child in history.added:
 
750
                        self._synchronize(state, child, None, False,
 
751
                                                uowcommit, "add")
748
752
                if self.post_update:
749
753
                    self._post_update(state, uowcommit, history.sum())
750
754