diff --git a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.py b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.py index b50129ecb176cb3390bc5227ce67e50eb8cd4d3e..34db40fc4e5bdaad225a0cbacaefde5c458e396f 100644 --- a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.py +++ b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.py @@ -1,5 +1,4 @@ from Products.Formulator.Errors import FormValidationError -from Products.CMFActivity.Errors import ActivityPendingError from Products.ERP5Type.Utils import convertToUpperCase request=container.REQUEST @@ -26,7 +25,6 @@ if not silent_mode and not request.AUTHENTICATED_USER.has_permission('Modify por # Get the form form = getattr(context,form_id) -edit_order = form.edit_order try: # Validate diff --git a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_isContentTranslationEnabled.py b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_isContentTranslationEnabled.py index 7c48722a1c0afa776b2c1899a5fc55c290fad351..a8ac4b78c6d56a8ccfc24d2ec93a6cbbd95112bb 100644 --- a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_isContentTranslationEnabled.py +++ b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_isContentTranslationEnabled.py @@ -1,5 +1,5 @@ try: return context.getTypeInfo().getContentTranslationDomainPropertyNameList() and True -except: +except Exception: # First time after cache is cleared, something is wrong and does not work. return False diff --git a/bt5/erp5_content_translation/bt/skip_coding_style_test b/bt5/erp5_content_translation/bt/skip_coding_style_test deleted file mode 100644 index 56a6051ca2b02b04ef92d5150c9ef600403cb1de..0000000000000000000000000000000000000000 --- a/bt5/erp5_content_translation/bt/skip_coding_style_test +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file