Commit dc2da7fd authored by Jérome Perrin's avatar Jérome Perrin

content_translation: fix pylint messages and enable coding style

parent a093355c
from Products.Formulator.Errors import FormValidationError from Products.Formulator.Errors import FormValidationError
from Products.CMFActivity.Errors import ActivityPendingError
from Products.ERP5Type.Utils import convertToUpperCase from Products.ERP5Type.Utils import convertToUpperCase
request=container.REQUEST request=container.REQUEST
...@@ -26,7 +25,6 @@ if not silent_mode and not request.AUTHENTICATED_USER.has_permission('Modify por ...@@ -26,7 +25,6 @@ if not silent_mode and not request.AUTHENTICATED_USER.has_permission('Modify por
# Get the form # Get the form
form = getattr(context,form_id) form = getattr(context,form_id)
edit_order = form.edit_order
try: try:
# Validate # Validate
......
try: try:
return context.getTypeInfo().getContentTranslationDomainPropertyNameList() and True return context.getTypeInfo().getContentTranslationDomainPropertyNameList() and True
except: except Exception:
# First time after cache is cleared, something is wrong and does not work. # First time after cache is cleared, something is wrong and does not work.
return False return False
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