diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-05 21:29:51 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-05 21:29:51 -0400 |
commit | c01d35f15db4e2caf6ce9b48721ecfa232c67813 (patch) | |
tree | 103b33c65604e1c0f9fcfb873cef562d8612c2e0 /lib/sqlalchemy/orm/unitofwork.py | |
parent | 8ee059027029ca0fd5f87f3ca844da9e862fa8a7 (diff) | |
download | sqlalchemy-c01d35f15db4e2caf6ce9b48721ecfa232c67813.tar.gz |
beginning to get post_update working, will need more tests
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
-rw-r--r-- | lib/sqlalchemy/orm/unitofwork.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py index 16a01bdc1..0e613a95f 100644 --- a/lib/sqlalchemy/orm/unitofwork.py +++ b/lib/sqlalchemy/orm/unitofwork.py @@ -150,6 +150,12 @@ class UOWTransaction(object): if isdelete and not existing_isdelete: raise Exception("Can't upgrade from a save to a delete") + def issue_post_update(self, state, post_update_cols): + mapper = state.manager.mapper.base_mapper + mapper._save_obj([state], self, \ + postupdate=True, \ + post_update_cols=set(post_update_cols)) + def states_for_mapper(self, mapper, isdelete, listonly): checktup = (isdelete, listonly) for state in self.mappers[mapper]: |