Commit 4a3c1515 authored by Łukasz Nowak's avatar Łukasz Nowak

Relax condition on temporary documents.

parent 607e75ae
...@@ -50,13 +50,17 @@ ...@@ -50,13 +50,17 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>rule = context.getParentValue().getSpecialiseValue()\n <value> <string>if context.isTempDocument():\n
# no way to check deeper temporary movements\n
return True\n
\n
rule = context.getParentValue().getSpecialiseValue()\n
if rule is not None:\n if rule is not None:\n
if rule.getPortalType() not in expected_rule_portal_type_list:\n if rule.getPortalType() in expected_rule_portal_type_list:\n
# for sure does not apply\n # for sure does not apply\n
return False\n return True\n
# rule is None, so maybe temporary movement, might apply\n \n
return True\n return False\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
353 354
\ No newline at end of file \ 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