Commit 628845b6 authored by Jérome Perrin's avatar Jérome Perrin

fixup! Add support for CMF 2.3

fix pylint warnings
parent a632fae8
Pipeline #13699 failed with stage
in 0 seconds
......@@ -148,8 +148,9 @@ class TestTemplateTool(ERP5TypeTestCase):
the new bt5 is not installed, only imported.
"""
self._svn_setup_ssl()
global PropertiesTool
class PropertiesTool(ActionsTool):
# we make this class a global so that it can be pickled
global PropertiesTool # pylint:disable=global-variable-not-assigned
class PropertiesTool(ActionsTool): # pylint:disable=redefined-outer-name
id = 'portal_properties'
cls = PropertiesTool
......
......@@ -36,7 +36,7 @@ from erp5.component.document.Document import ConversionError
from Products.ERP5Type.Base import Base, removeIContentishInterface
from OFS.Image import File as OFS_File
from Products.ERP5Type.Utils import deprecated
from cStringIO import StringIO
def _unpackData(data):
"""
......@@ -100,7 +100,6 @@ class File(Document, OFS_File):
"""
if 'file' in kw:
file_object = kw.pop('file')
precondition = kw.get('precondition')
filename = getattr(file_object, 'filename', None)
# if file field is empty(no file is uploaded),
# filename is empty string.
......
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