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