Commit d7cc25d6 authored by Gabriel Monnerat's avatar Gabriel Monnerat

use uid instead of reference because two computer partitions can use the same...

use uid instead of reference because two computer partitions can use the same reference but each partition is installed in different computer
parent 0a55fd93
...@@ -6360,7 +6360,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -6360,7 +6360,7 @@ class TestVifibSlapWebService(testVifibMixin):
def _getSoftwareInstanceFromCurrentComputerPartition(self, sequence): def _getSoftwareInstanceFromCurrentComputerPartition(self, sequence):
query = ComplexQuery( query = ComplexQuery(
Query(aggregate_reference=sequence['computer_partition_reference']), Query(aggregate_uid=sequence['computer_partition_uid']),
Query(aggregate_portal_type=self.software_instance_portal_type), Query(aggregate_portal_type=self.software_instance_portal_type),
operator="AND") operator="AND")
software_instance = self.portal.portal_catalog.getResultValue( software_instance = self.portal.portal_catalog.getResultValue(
...@@ -6371,7 +6371,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -6371,7 +6371,7 @@ class TestVifibSlapWebService(testVifibMixin):
def _getSlaveInstanceFromCurrentComputerPartition(self, sequence): def _getSlaveInstanceFromCurrentComputerPartition(self, sequence):
query = ComplexQuery( query = ComplexQuery(
Query(aggregate_reference=sequence['computer_partition_reference']), Query(aggregate_uid=sequence['computer_partition_uid']),
Query(aggregate_portal_type=self.slave_instance_portal_type), Query(aggregate_portal_type=self.slave_instance_portal_type),
operator="AND") operator="AND")
slave_instance = self.portal.portal_catalog.getResultValue( slave_instance = self.portal.portal_catalog.getResultValue(
......
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