Commit f4bc7fe2 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_package: [HACK] Delete _tree and access _value attribute to get the...

bt5_package: [HACK] Delete _tree and access _value attribute to get the Business Item attributes object from ZODB
parent b999ac04
...@@ -1905,8 +1905,13 @@ class TemplateTool (BaseTool): ...@@ -1905,8 +1905,13 @@ class TemplateTool (BaseTool):
# XXX: Hack for not trying to install the sub-objects from zexp, # XXX: Hack for not trying to install the sub-objects from zexp,
# This should rather be implemneted while exportign the object, # This should rather be implemneted while exportign the object,
# where we shouldn't export sub-objects in the zexp # where we shouldn't export sub-objects in the zexp
if new_item._value._tree: value = new_item._value
del new_item._value._tree if value is None:
continue
if value._tree:
# This check is required cause only after first access we get the
# values from the dict
del value._tree
new_item.install(installation_process) new_item.install(installation_process)
return error_list return error_list
......
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