Commit de2b6575 authored by Aurel's avatar Aurel

reset signature status only if we need to check for modifications

parent 589eb85b
...@@ -187,7 +187,10 @@ class EngineMixin(object): ...@@ -187,7 +187,10 @@ class EngineMixin(object):
if subscription.getAuthenticationState() != 'logged_in': if subscription.getAuthenticationState() != 'logged_in':
# Workflow action # Workflow action
subscription.login() subscription.login()
subscription.initialiseSynchronization() if subscription.getSyncmlAlertCode() not in ("one_way_from_server",
"refresh_from_server_only"):
# Reset signature only if client send its modification to server
subscription.initialiseSynchronization()
# Create the package 1 # Create the package 1
syncml_response = SyncMLResponse() syncml_response = SyncMLResponse()
...@@ -435,7 +438,10 @@ class EngineMixin(object): ...@@ -435,7 +438,10 @@ class EngineMixin(object):
next_anchor=subscriber.getNextAnchor()) next_anchor=subscriber.getNextAnchor())
# Now that everything is ok, init sync information # Now that everything is ok, init sync information
subscriber.initialiseSynchronization() if subscriber.getSyncmlAlertCode() not in ("one_way_from_client",
"refresh_from_client_only"):
# Reset signature only if we have to check modifications on server side
subscriber.initialiseSynchronization()
# Server get sync commands from client first # Server get sync commands from client first
subscriber.processSyncRequest() subscriber.processSyncRequest()
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment