diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHistoricalComparisonDifferenceList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHistoricalComparisonDifferenceList.xml index 2c999e6c14cd9564e75e5809892ada4620d6a4f3..8c28d6d8740e0d76767736d066018082419a4645 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHistoricalComparisonDifferenceList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHistoricalComparisonDifferenceList.xml @@ -52,6 +52,7 @@ <key> <string>_body</string> </key> <value> <string>from Products.PythonScripts.standard import Object\n from ZODB.POSException import ConflictError\n +from zExceptions import Unauthorized\n Base_translateString = context.Base_translateString\n \n serial = context.REQUEST[\'serial\']\n @@ -59,9 +60,9 @@ next_serial = context.REQUEST[\'next_serial\']\n \n try:\n context.HistoricalRevisions[serial]\n -except ConflictError:\n +except (ConflictError, Unauthorized):\n raise\n -except: # POSKeyError\n +except Exception: # POSKeyError\n return [Object(property_name=Base_translateString(\'Historical revisions are\'\n \' not available, maybe the database has been packed\'))]\n \n diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 9a46fc0fd5cd06c8b3530d3232f243d57df20237..673953520888af970b32168f0c056b9a90754d47 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -41128 \ No newline at end of file +41129 \ No newline at end of file