diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-09-07 23:04:13 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-09-07 23:04:13 +0000 |
| commit | eed944dbb93e0ebf8038ae190d4cbbe9ea849a11 (patch) | |
| tree | f1466f45904253373f2cd589cef01a6f846ba08c /lib/sqlalchemy/orm/unitofwork.py | |
| parent | 45dd486e0694a1dd60baa7410d2caeb00146333f (diff) | |
| download | sqlalchemy-eed944dbb93e0ebf8038ae190d4cbbe9ea849a11.tar.gz | |
fixup to printing of uow
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
| -rw-r--r-- | lib/sqlalchemy/orm/unitofwork.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py index 17c77785a..2dac05b1a 100644 --- a/lib/sqlalchemy/orm/unitofwork.py +++ b/lib/sqlalchemy/orm/unitofwork.py @@ -577,9 +577,11 @@ class UOWExecutor(object): def execute_per_element_childtasks(self, trans, task, isdelete): for polytask in task.polymorphic_tasks(): for element in polytask.tosave_elements + polytask.todelete_elements: - for child in element.childtasks: - self.execute(trans, child, isdelete) + self.execute_element_childtasks(trans, element, isdelete) + def execute_element_childtasks(self, trans, element, isdelete): + for child in element.childtasks: + self.execute(trans, child, isdelete) class UOWTask(object): """represents the full list of objects that are to be saved/deleted by a specific Mapper.""" |
