Commit 2f888e0b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Revert "fix Unauthorized exception that can be caused by automatic solver."

Because solve() is now unrestecred method.

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