Commit e2146551 authored by Levin Zimmermann's avatar Levin Zimmermann

erp5_wendelin: Fix naming convention issue

parent c8d4edda
...@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo ...@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type.Core.Folder import Folder from Products.ERP5Type.Core.Folder import Folder
from cStringIO import StringIO from cStringIO import StringIO
import msgpack import msgpack
from warnings import warn
class IngestionPolicyTool(Folder): class IngestionPolicyTool(Folder):
...@@ -64,8 +65,15 @@ class IngestionPolicyTool(Folder): ...@@ -64,8 +65,15 @@ class IngestionPolicyTool(Folder):
# we need pure primitive list so we avoid zope security in restricted # we need pure primitive list so we avoid zope security in restricted
# script environment, but we loose lazyness # script environment, but we loose lazyness
return [x for x in msgpack_list] return [x for x in msgpack_list]
def unpack_lazy(self, data, use_list=True): def unpack_lazy(self, data, use_list=True):
warn(
"Method 'unpack_lazy' is deprecated. Please use 'unpackLazy' instead.",
DeprecationWarning
)
return self.unpack_lazy(data, use_list=use_list)
def unpackLazy(self, data, use_list=True):
""" """
Lazy unpack data, usable in restructed environment Lazy unpack data, usable in restructed environment
Setting use_list=False uses tuples instead of lists which is faster Setting use_list=False uses tuples instead of lists which is faster
......
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