Commit 171a135f authored by Łukasz Nowak's avatar Łukasz Nowak

Abort transaction before continuing.

Test can leave transaction in erroneous state, revert it.
parent 8535452e
...@@ -29,6 +29,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by H ...@@ -29,6 +29,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by H
try: try:
func(self, *args, **kwargs) func(self, *args, **kwargs)
finally: finally:
transaction.abort()
if script_name in self.portal.portal_skins.custom.objectIds(): if script_name in self.portal.portal_skins.custom.objectIds():
self.portal.portal_skins.custom.manage_delObjects(script_name) self.portal.portal_skins.custom.manage_delObjects(script_name)
transaction.commit() transaction.commit()
......
68 69
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment