Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Xavier Thompson
erp5
Commits
46966cdb
Commit
46966cdb
authored
Dec 22, 2022
by
Jérome Perrin
Committed by
Arnaud Fontaine
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/OFSPdata: drop getLastPdata patch
This is in SyncMLUtils
parent
52bc7249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
19 deletions
+9
-19
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.SyncMLUtils.py
...TemplateItem/portal_components/module.erp5.SyncMLUtils.py
+9
-2
product/ERP5Type/patches/OFSPdata.py
product/ERP5Type/patches/OFSPdata.py
+0
-17
No files found.
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.SyncMLUtils.py
View file @
46966cdb
...
...
@@ -28,6 +28,7 @@
##############################################################################
# Required modules - some modules are imported later to prevent circular deadlocks
import
six
import
persistent
from
hashlib
import
md5
...
...
@@ -186,9 +187,15 @@ class PdataHelper(persistent.Persistent):
of a Pdata chains
"""
pdata
=
self
.
_data
next_
=
pdata
.
next
if
six
.
PY2
:
next_
=
pdata
.
next
else
:
next_
=
pdata
.
__next__
while
next_
is
not
None
:
pdata
=
next_
next_
=
pdata
.
next
if
six
.
PY2
:
next_
=
pdata
.
next
else
:
next_
=
pdata
.
__next__
return
pdata
product/ERP5Type/patches/OFSPdata.py
View file @
46966cdb
...
...
@@ -30,23 +30,6 @@ import six
from
OFS.Image
import
Pdata
def
getLastPdata
(
self
):
"""Return the last Pdata chunk"""
if
six
.
PY2
:
next
=
self
.
next
else
:
next
=
self
.
__next__
while
next
is
not
None
:
self
=
next
if
six
.
PY2
:
next
=
self
.
next
else
:
next
=
self
.
__next__
return
self
Pdata
.
getLastPdata
=
getLastPdata
def
__nonzero__
(
self
):
while
not
self
.
data
:
if
six
.
PY2
:
...
...
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