Commit ad309c80 by Boris Kocherov Committed by Julien Muchembled

BT: preventing of garbage appearance in objects during reinstall

1 parent 46a43174
......@@ -5098,6 +5098,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
if self.getBtForDiff():
item.is_bt_for_diff = 1
item.build(self)
# update _p_jar property of objects cleaned by removeProperties
transaction.savepoint(optimistic=True)
def publish(self, url, username=None, password=None):
"""
......
......@@ -188,8 +188,6 @@ class WorkingCopy(Implicit):
if business_template.getBuildingState() == 'draft':
business_template.edit()
business_template.build()
# XXX: Big hack to make export work as expected.
transaction.commit()
self._export(business_template)
def _export(self, business_template):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!