Commit ab9e6e69 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix Unauthorized exception that can be caused by automatic solver.

parent def6774e
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>solver_process = state_change[\'object\'].getParentValue()\n
<value> <string>solver_process = state_change[\'object\'].aq_parent\n
if solver_process.getValidationState() == \'draft\':\n
solver_process.startSolving()\n
</string> </value>
......@@ -59,6 +59,14 @@ if solver_process.getValidationState() == \'draft\':\n
<key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Auditor</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SolverProcess_startSolving</string> </value>
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>solver_process = state_change[\'object\'].getParentValue()\n
<value> <string>solver_process = state_change[\'object\'].aq_parent\n
for solver in solver_process.objectValues(\n
portal_type=solver_process.getPortalObject().getPortalTargetSolverTypeList()):\n
if solver.getValidationState() != \'solved\':\n
......@@ -62,6 +62,14 @@ solver_process.succeed()\n
<key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Auditor</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SolverProcess_succeed</string> </value>
......
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