[Erp5-report] r16017 - /erp5/trunk/products/ERP5SyncML/Subscription.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 3 14:15:09 CEST 2007


Author: nicolas
Date: Mon Sep  3 14:15:08 2007
New Revision: 16017

URL: http://svn.erp5.org?rev=16017&view=rev
Log:
add log message when Query not found

Modified:
    erp5/trunk/products/ERP5SyncML/Subscription.py

Modified: erp5/trunk/products/ERP5SyncML/Subscription.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Subscription.py?rev=16017&r1=16016&r2=16017&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Subscription.py (original)
+++ erp5/trunk/products/ERP5SyncML/Subscription.py Mon Sep  3 14:15:08 2007
@@ -1104,12 +1104,14 @@
       query_method = getattr(destination, query, None)
       if query_method is not None:
         query_list = query_method(**kw)
+      else:
+        LOG('This Subscriber %s provide no Query with id :' % (self.getTitle()), INFO, query)
     elif callable(query): # used in the test
       query_list = query(destination)
     else:
       LOG('This Subscriber %s provide no Query with id :' % (self.getTitle()), INFO, query)
     return [x for x in query_list
-              if not getattr(x,'_conflict_resolution',False)]
+              if not getattr(x,'_conflict_resolution', False)]
 
   def generateNewIdWithGenerator(self, object=None, gid=None):
     """




More information about the Erp5-report mailing list