Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
be1773d5
Commit
be1773d5
authored
Oct 17, 2013
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix wrongly defined variable & limit when creating activity
parent
8e7afa30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5SyncML/Document/SyncMLSubscription.py
product/ERP5SyncML/Document/SyncMLSubscription.py
+2
-2
No files found.
product/ERP5SyncML/Document/SyncMLSubscription.py
View file @
be1773d5
...
@@ -119,7 +119,7 @@ class SyncMLSubscription(XMLObject):
...
@@ -119,7 +119,7 @@ class SyncMLSubscription(XMLObject):
# We index everything at once
# We index everything at once
limit
=
None
limit
=
None
packet_size
=
None
packet_size
=
None
search_kw
=
None
search_kw
=
{}
try
:
try
:
r
=
self
.
getDocumentIdList
(
limit
=
limit
,
**
search_kw
)
# It is assumed that
r
=
self
.
getDocumentIdList
(
limit
=
limit
,
**
search_kw
)
# It is assumed that
# the result is sorted
# the result is sorted
...
@@ -340,7 +340,7 @@ class SyncMLSubscription(XMLObject):
...
@@ -340,7 +340,7 @@ class SyncMLSubscription(XMLObject):
max_gid=r[i+packet_size-1],
max_gid=r[i+packet_size-1],
message_id=message_id_list.pop(),
message_id=message_id_list.pop(),
activate_kw=activate_kw)
activate_kw=activate_kw)
final_min = i +
packet_size - 1
final_min = i +
packet_size
else:
else:
final_min = 0
final_min = 0
# Final activity must be tell there is no upper limit
# Final activity must be tell there is no upper limit
...
...
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