From e6ed5b2c732822849d9a39c629aefca5f72f8d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Thu, 20 Nov 2014 08:14:36 +0100 Subject: [PATCH] syncml : even when do not create signature, try to get the document for an update --- product/ERP5SyncML/Document/SyncMLSubscription.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5SyncML/Document/SyncMLSubscription.py b/product/ERP5SyncML/Document/SyncMLSubscription.py index a117843fd4..0f97bb3f91 100644 --- a/product/ERP5SyncML/Document/SyncMLSubscription.py +++ b/product/ERP5SyncML/Document/SyncMLSubscription.py @@ -463,8 +463,9 @@ class SyncMLSubscription(XMLObject): path_list.append(signature.getPath()) force = signature.isForce() # XXX-must check the use of this later else: - force = True # Always erease data in this mode - document = None # For now, do no try to retrieve previous version of document + force = True # Always erease data in this mod + document = self.getDocumentFromGid(gid) + #document = None # For now, do no try to retrieve previous version of document # XXX this has to be managed with a property # XXX Some improvement can also be done to retrieve a list of document at once -- 2.30.9