Commit 9e687aeb authored by Jérome Perrin's avatar Jérome Perrin

This script contained a bare except

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20322 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14b2b1f4
......@@ -99,11 +99,8 @@ def resourceSalePriceSortMethod(a, b):\n
else:\n
return sourceSortMethod(a, b)\n
\n
try:\n
if hasattr(context, \'getExplanationValue\'):\n
explanation = context.getExplanationValue()\n
except:\n
pass\n
else:\n
if explanation is not None:\n
explanation_type = explanation.getPortalType()\n
# XXX FIXME: Hardcoded values\n
......@@ -171,8 +168,9 @@ else:\n
<string>destinationSortMethod</string>
<string>resourcePurchasePriceSortMethod</string>
<string>resourceSalePriceSortMethod</string>
<string>_getattr_</string>
<string>hasattr</string>
<string>context</string>
<string>_getattr_</string>
<string>explanation</string>
<string>None</string>
<string>explanation_type</string>
......
776
\ No newline at end of file
777
\ 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