Commit 159ea091 authored by Rafael Monnerat's avatar Rafael Monnerat

Added utility method.

parent e13b962d
...@@ -6131,6 +6131,16 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -6131,6 +6131,16 @@ class TestVifibSlapWebService(testVifibMixin):
query=query).getAggregateValue(portal_type="Software Instance") query=query).getAggregateValue(portal_type="Software Instance")
return software_instance return software_instance
def _getSlaveInstanceFromCurrentComputerPartition(self, sequence):
query = ComplexQuery(
Query(aggregate_reference=sequence['computer_partition_reference']),
Query(aggregate_portal_type=self.slave_instance_portal_type),
operator="AND")
slave_instance = self.portal.portal_catalog.getResultValue(
portal_type="Sale Packing List Line",
query=query).getAggregateValue(portal_type=self.slave_instance_portal_type)
return slave_instance
def stepRequestDestroySoftwareInstanceFromCurrentComputerPartition(self, sequence): def stepRequestDestroySoftwareInstanceFromCurrentComputerPartition(self, sequence):
software_instance = self._getSoftwareInstanceFromCurrentComputerPartition( software_instance = self._getSoftwareInstanceFromCurrentComputerPartition(
sequence) sequence)
......
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