Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
wendelin
Commits
e2146551
Commit
e2146551
authored
Jun 14, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin: Fix naming convention issue
parent
c8d4edda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.IngestionPolicyTool.py
...em/portal_components/document.erp5.IngestionPolicyTool.py
+9
-1
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.IngestionPolicyTool.py
View file @
e2146551
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment