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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
76e1ba08
Commit
76e1ba08
authored
Aug 14, 2013
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decrease number of log
parent
f16604df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
product/ERP5SyncML/Document/SyncMLSubscription.py
product/ERP5SyncML/Document/SyncMLSubscription.py
+5
-7
No files found.
product/ERP5SyncML/Document/SyncMLSubscription.py
View file @
76e1ba08
...
@@ -272,7 +272,7 @@ class SyncMLSubscription(XMLObject):
...
@@ -272,7 +272,7 @@ class SyncMLSubscription(XMLObject):
search_kw = dict(kw)
search_kw = dict(kw)
packet_size = search_kw.pop('packet_size', 30)
packet_size = search_kw.pop('packet_size', 30)
limit = packet_size * search_kw.pop('activity_count', 100)
limit = packet_size * search_kw.pop('activity_count', 100)
syncml_logger.
info
("
-->
calling
getAndActivate
packet
size
=
%
s
,
limit
=
%
s
" %
syncml_logger.
debug
("
-->
calling
getAndActivate
packet
size
=
%
s
,
limit
=
%
s
" %
(packet_size, limit))
(packet_size, limit))
# We must know if we have a lower limit or not to propagate
# We must know if we have a lower limit or not to propagate
if not kw.has_key("
strict_min_gid
"):
if not kw.has_key("
strict_min_gid
"):
...
@@ -319,8 +319,8 @@ class SyncMLSubscription(XMLObject):
...
@@ -319,8 +319,8 @@ class SyncMLSubscription(XMLObject):
except IndexError:
except IndexError:
# Last packet
# Last packet
max_gid = r[-1]
max_gid = r[-1]
syncml_logger.info("
--
getAndActivate
:
recursive
call
i
=
%
s
,
min
=
%
s
,
max
=
%
s
\
nr
=
%
s
"
\
syncml_logger.info("
--
getAndActivate
:
recursive
call
i
=
%
s
,
min
=
%
s
,
max
=
%
s
"
\
% (i, min_gid, max_gid,
r
))
% (i, min_gid, max_gid,))
callback_method(min_gid=min_gid,
callback_method(min_gid=min_gid,
max_gid=max_gid,
max_gid=max_gid,
message_id=message_id_list.pop(),
message_id=message_id_list.pop(),
...
@@ -329,7 +329,6 @@ class SyncMLSubscription(XMLObject):
...
@@ -329,7 +329,6 @@ class SyncMLSubscription(XMLObject):
i = 0
i = 0
if result_count > packet_size:
if result_count > packet_size:
for i in xrange(0, result_count-packet_size, packet_size):
for i in xrange(0, result_count-packet_size, packet_size):
syncml_logger.info("
--
getAndActivate
call
")
if first_call:
if first_call:
min_gid = None
min_gid = None
first_call = False
first_call = False
...
@@ -346,13 +345,12 @@ class SyncMLSubscription(XMLObject):
...
@@ -346,13 +345,12 @@ class SyncMLSubscription(XMLObject):
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
# XXX maybe re-put here the final tag of message to avoid empty message
# XXX maybe re-put here the final tag of message to avoid empty message
syncml_logger.info("
----
getAndActivate
:
final
call
")
if first_call:
if first_call:
min_gid = None
min_gid = None
else:
else:
min_gid = r[final_min]
min_gid = r[final_min]
syncml_logger.info("
--
getAndActivate
:
final
call
min
=
%
s
,
max
=
%
s
"
\
syncml_logger.info("
--
getAndActivate
:
final
call
min
=
%
s
,
max
=
None
"
\
% (min_gid,
"
None
"
))
% (min_gid,))
callback_method(min_gid=min_gid,
callback_method(min_gid=min_gid,
max_gid=None, # No limit when last call
max_gid=None, # No limit when last call
message_id=message_id_list.pop(),
message_id=message_id_list.pop(),
...
...
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