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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
ae610a07
Commit
ae610a07
authored
Dec 22, 2022
by
Jérome Perrin
Committed by
Arnaud Fontaine
Mar 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/OFSPdata: drop getLastPdata patch
This is in SyncMLUtils
parent
cc0b1b45
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 @
ae610a07
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
##############################################################################
##############################################################################
# Required modules - some modules are imported later to prevent circular deadlocks
# Required modules - some modules are imported later to prevent circular deadlocks
import
six
import
persistent
import
persistent
from
hashlib
import
md5
from
hashlib
import
md5
...
@@ -186,9 +187,15 @@ class PdataHelper(persistent.Persistent):
...
@@ -186,9 +187,15 @@ class PdataHelper(persistent.Persistent):
of a Pdata chains
of a Pdata chains
"""
"""
pdata
=
self
.
_data
pdata
=
self
.
_data
next_
=
pdata
.
next
if
six
.
PY2
:
next_
=
pdata
.
next
else
:
next_
=
pdata
.
__next__
while
next_
is
not
None
:
while
next_
is
not
None
:
pdata
=
next_
pdata
=
next_
next_
=
pdata
.
next
if
six
.
PY2
:
next_
=
pdata
.
next
else
:
next_
=
pdata
.
__next__
return
pdata
return
pdata
product/ERP5Type/patches/OFSPdata.py
View file @
ae610a07
...
@@ -30,23 +30,6 @@ import six
...
@@ -30,23 +30,6 @@ import six
from
OFS.Image
import
Pdata
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
):
def
__nonzero__
(
self
):
while
not
self
.
data
:
while
not
self
.
data
:
if
six
.
PY2
:
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