From 0e11d6583d8606407c2beac53f2944f4a5cad8d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 21 Mar 2013 13:50:18 +0100
Subject: [PATCH] use objectValues which is lazy

---
 product/ERP5SyncML/Document/SyncMLSubscription.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5SyncML/Document/SyncMLSubscription.py b/product/ERP5SyncML/Document/SyncMLSubscription.py
index 68d4865cfb..c190bcf745 100644
--- a/product/ERP5SyncML/Document/SyncMLSubscription.py
+++ b/product/ERP5SyncML/Document/SyncMLSubscription.py
@@ -488,7 +488,7 @@ class SyncMLSubscription(XMLObject):
       # XXX not efficient at all but must not be used (former way)
       syncml_logger.warning("Using non-efficient way to retrieve delete object on %s"
                             % (self.getRelativeUrl(),))
-      id_list = [x.getId() for x in self.contentValues() if \
+      id_list = [x.getId() for x in self.objectValues() if \
                    x.getValidationState() == "not_synchronized"]
       for gid in id_list:
         syncml_response.addDeleteCommand(gid=gid)
-- 
2.30.9