Commit fcddf13b authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: set the causality relation on the ticket

parent 61be8f81
from DateTime import DateTime from DateTime import DateTime
portal = context.getPortalObject() portal = context.getPortalObject()
from zExceptions import Unauthorized
if REQUEST is not None:
raise Unauthorized
instance_tree = context instance_tree = context
...@@ -108,6 +111,8 @@ if len(allocation_cell_list) == 1: ...@@ -108,6 +111,8 @@ if len(allocation_cell_list) == 1:
resource_value=software_product, resource_value=software_product,
variation_category_list=allocation_cell_list[0].getVariationCategoryList(), variation_category_list=allocation_cell_list[0].getVariationCategoryList(),
aggregate_value=instance_tree, aggregate_value=instance_tree,
# As a ticket, give the ticket original context
causality_value=instance_tree,
) )
with upgrade_decision.defaultActivateParameterDict({'tag': tag}): with upgrade_decision.defaultActivateParameterDict({'tag': tag}):
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>target_software_release=None, target_software_type=None</string> </value> <value> <string>REQUEST=None, target_software_release=None, target_software_type=None</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
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