Commit ad309c80 authored by Boris Kocherov's avatar Boris Kocherov Committed by Julien Muchembled

BT: preventing of garbage appearance in objects during reinstall

parent 46a43174
...@@ -5098,6 +5098,8 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5098,6 +5098,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
if self.getBtForDiff(): if self.getBtForDiff():
item.is_bt_for_diff = 1 item.is_bt_for_diff = 1
item.build(self) item.build(self)
# update _p_jar property of objects cleaned by removeProperties
transaction.savepoint(optimistic=True)
def publish(self, url, username=None, password=None): def publish(self, url, username=None, password=None):
""" """
......
...@@ -188,8 +188,6 @@ class WorkingCopy(Implicit): ...@@ -188,8 +188,6 @@ class WorkingCopy(Implicit):
if business_template.getBuildingState() == 'draft': if business_template.getBuildingState() == 'draft':
business_template.edit() business_template.edit()
business_template.build() business_template.build()
# XXX: Big hack to make export work as expected.
transaction.commit()
self._export(business_template) self._export(business_template)
def _export(self, business_template): def _export(self, business_template):
......
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