Commit 7827d360 authored by Ivan Tyagov's avatar Ivan Tyagov

Allow to pass additional keyword arguments to transformation script

parent 015d4f28
...@@ -71,7 +71,8 @@ if transform_script_id is not None:\n ...@@ -71,7 +71,8 @@ if transform_script_id is not None:\n
start, end = transform_script(context, data_stream_chunk_list, \\\n start, end = transform_script(context, data_stream_chunk_list, \\\n
start, \\\n start, \\\n
end, \\\n end, \\\n
data_array_reference)\n data_array_reference, \\\n
**kw)\n
\n \n
# [warning] store current position offset in Data Stream, this can cause easily \n # [warning] store current position offset in Data Stream, this can cause easily \n
# ConflictErrors and it spawns re-index activities on DataStream. Thus \n # ConflictErrors and it spawns re-index activities on DataStream. Thus \n
...@@ -92,14 +93,15 @@ data_stream.activate().DataStream_readChunkListAndTransform( \\\n ...@@ -92,14 +93,15 @@ data_stream.activate().DataStream_readChunkListAndTransform( \\\n
end, \\\n end, \\\n
chunk_length, \\\n chunk_length, \\\n
transform_script_id,\n transform_script_id,\n
data_array_reference)\n data_array_reference,\n
**kw)\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>start, end, chunk_length, transform_script_id=None, data_array_reference=None</string> </value> <value> <string>start, end, chunk_length, transform_script_id=None, data_array_reference=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -64,12 +64,15 @@ context.activate().DataStream_readChunkListAndTransform( \\\n ...@@ -64,12 +64,15 @@ context.activate().DataStream_readChunkListAndTransform( \\\n
end, \\\n end, \\\n
chunk_length, \\\n chunk_length, \\\n
transform_script_id, \\\n transform_script_id, \\\n
data_array_reference)\n data_array_reference,\\\n
**kw)\n
\n
return data_length\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>chunk_length=1048576, transform_script_id=None, data_array_reference=None</string> </value> <value> <string>chunk_length=1048576, transform_script_id=None, data_array_reference=None, **kw</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