Commit 88a2f8fe authored by Ivan Tyagov's avatar Ivan Tyagov

Use better properties to match what is already used inside ERP5.

source_section -> source
destination_section -> destination
parent 8a3cdaa0
......@@ -81,8 +81,8 @@
<key> <string>right</string> </key>
<value>
<list>
<string>my_source_section_title_list</string>
<string>my_destination_section_title_list</string>
<string>my_source_title_list</string>
<string>my_destination_title_list</string>
</list>
</value>
</item>
......
......@@ -19,7 +19,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_destination_section_title_list</string> </value>
<value> <string>my_destination_title_list</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -19,7 +19,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_source_section_title_list</string> </value>
<value> <string>my_source_title_list</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......
......@@ -88,10 +88,10 @@ if data_chunk is not None and reference is not None:\n
# Data Ingestion (Movements)\n
if data_supply is not None:\n
for data_supply_line in data_supply.objectValues():\n
sensor = data_supply_line.getSourceSectionValue()\n
sensor = data_supply_line.getSourceValue()\n
if sensor is not None and sensor.getReference() == reference:\n
# Sensor is defined as destination\n
data_stream = data_supply_line.getDestinationSectionValue()\n
data_stream = data_supply_line.getDestinationValue()\n
break\n
\n
#context.log(sensor)\n
......
......@@ -107,8 +107,8 @@ class Test(ERP5TypeTestCase):
'start_date': now,
'stop_date': now + 365}
data_supply_line_kw = {'resource_value': resource,
'source_section_value': sensor,
'destination_section_value': data_stream}
'source_value': sensor,
'destination_value': data_stream}
data_supply = ingestion_policy.PortalIngestionPolicy_addDataSupply( \
data_supply_kw, \
data_supply_line_kw)
......
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