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
Alexander Emmerich
erp5
Commits
05509c11
Commit
05509c11
authored
Nov 05, 2014
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syncml : do not redefine variable as it is used later in some cases
parent
2bb15572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5SyncML/Document/SyncMLSubscription.py
product/ERP5SyncML/Document/SyncMLSubscription.py
+5
-5
No files found.
product/ERP5SyncML/Document/SyncMLSubscription.py
View file @
05509c11
...
...
@@ -122,7 +122,7 @@ class SyncMLSubscription(XMLObject):
packet_size
=
None
search_kw
=
{}
try
:
r
=
self
.
getDocumentIdList
(
limit
=
limit
,
**
search_kw
)
# It is assumed that
r
_list
=
self
.
getDocumentIdList
(
limit
=
limit
,
**
search_kw
)
# It is assumed that
# the result is sorted
except
TypeError
:
if
not
RETRO_COMPATIBLE
:
...
...
@@ -130,11 +130,11 @@ class SyncMLSubscription(XMLObject):
else
:
syncml_logger
.
warning
(
"Script %s does not accept paramaters limit=%s kw=%s"
%
(
self
.
getListMethodId
(),
limit
,
search_kw
,))
r
=
self
.
getDocumentList
()
# It is assumed that
r
_list
=
self
.
getDocumentList
()
# It is assumed that
# the result is sorted
result_count
=
len
(
r
)
result_count
=
len
(
r
_list
)
if
result_count
:
r
=
[
str
(
x
.
path
)
for
x
in
r
]
r
=
[
str
(
x
.
path
)
for
x
in
r
_list
]
if
not
limit
:
# We do not split in activity so call the callback right now
syncml_logger
.
info
(
"getAndIndex : got %d result and no limit, calling callback..."
%
...
...
@@ -150,7 +150,7 @@ class SyncMLSubscription(XMLObject):
if
result_count
==
limit
:
# Recursive call to prevent too many activity generation
next_kw
=
dict
(
activate_kw
,
priority
=
1
+
activate_kw
.
get
(
'priority'
,
1
))
kw
[
"min_id"
]
=
r
[
-
1
].
getId
()
kw
[
"min_id"
]
=
r
_list
[
-
1
].
getId
()
syncml_logger
.
info
(
"--> calling getAndIndex in activity, min = %s"
%
(
kw
[
"min_id"
],))
self
.
activate
(
**
next_kw
).
getAndIndex
(
...
...
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