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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
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
Show 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 @@
...
@@ -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
if
six
.
PY2
:
next_
=
pdata
.
next
next_
=
pdata
.
next
else
:
next_
=
pdata
.
__next__
while
next_
is
not
None
:
while
next_
is
not
None
:
pdata
=
next_
pdata
=
next_
if
six
.
PY2
:
next_
=
pdata
.
next
next_
=
pdata
.
next
else
:
next_
=
pdata
.
__next__
return
pdata
return
pdata
product/ERP5Type/patches/OFSPdata.py
View file @
46966cdb
...
@@ -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