Commit 8279905d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not raise an exception if solver is not configurable.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31283 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f28ba2b2
...@@ -63,7 +63,11 @@ if not solver:\n ...@@ -63,7 +63,11 @@ if not solver:\n
\n \n
solver = context.getSolverValue()\n solver = context.getSolverValue()\n
\n \n
return "%s/%s" % (context.absolute_url(), solver.getConfigurationFormId())\n try:\n
return "%s/%s" % (context.absolute_url(), solver.getConfigurationFormId())\n
except AttributeError:\n
# the solver is not configurable.\n
return False\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -104,6 +108,7 @@ return "%s/%s" % (context.absolute_url(), solver.getConfigurationFormId())\n ...@@ -104,6 +108,7 @@ return "%s/%s" % (context.absolute_url(), solver.getConfigurationFormId())\n
<string>context</string> <string>context</string>
<string>solver</string> <string>solver</string>
<string>False</string> <string>False</string>
<string>AttributeError</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
23 24
\ 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