Commit 3d7d8c64 authored by Ivan Tyagov's avatar Ivan Tyagov

We may have specified (i.e. user input) source and destination. (If we just...

We may have specified (i.e. user input) source and destination. (If we just rely on extracting them from data they will be lost).
parent 1b4b6ddf
......@@ -56,6 +56,14 @@ content_dict[\'title\'] = context.getTitle()\n
content_dict[\'text_content\'] = context.getTextContent()\n
content_dict[\'content_type\'] = context.getContentType()\n
content_dict[\'data\'] = None\n
# we may have specified (i.e. user input) source and destination\n
content_dict[\'destination_list\'] = content_dict.get(\'destination_list\', []) + \\\n
[x.getRelativeUrl() for x in context.getDestinationValueList() \\\n
if x.getRelativeUrl() not in content_dict.get(\'destination_list\', [])]\n
content_dict[\'source_list\'] = content_dict.get(\'source_list\', []) + \\\n
[x.getRelativeUrl() for x in context.getSourceValueList() \\\n
if x.getRelativeUrl() not in content_dict.get(\'source_list\', [])]\n
\n
context.edit(**content_dict)\n
</string> </value>
</item>
......
587
\ No newline at end of file
588
\ No newline at end of file
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