Commit 78f5044a authored by Julien Muchembled's avatar Julien Muchembled

Really fix infinite loops caused by interactions on temporary objects (cf r39522)

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@39542 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 192a4417
......@@ -687,7 +687,9 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
# to nonexistant base_amount (e.g. "produced_quantity" for
# transformations), which would make domain tool return nothing.
# Following hack cleans up a category we don't want to test anyway.
tmp_context._setBaseApplication(None)
# Also, do not use '_setBaseApplication' to bypass interactions.
portal.portal_categories._setCategoryMembership(tmp_context,
('base_application',), ())
mapped_value = portal.portal_domains.generateMultivaluedMappedValue(
tmp_context,
portal_type=portal_type_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