Commit af578845 authored by Nicolas Delaby's avatar Nicolas Delaby

add log message when Query not found

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16017 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dcfc6b47
...@@ -1104,12 +1104,14 @@ class Subscription(Folder, XMLSyncUtils): ...@@ -1104,12 +1104,14 @@ class Subscription(Folder, XMLSyncUtils):
query_method = getattr(destination, query, None) query_method = getattr(destination, query, None)
if query_method is not None: if query_method is not None:
query_list = query_method(**kw) 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 elif callable(query): # used in the test
query_list = query(destination) query_list = query(destination)
else: else:
LOG('This Subscriber %s provide no Query with id :' % (self.getTitle()), INFO, query) LOG('This Subscriber %s provide no Query with id :' % (self.getTitle()), INFO, query)
return [x for x in query_list 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): def generateNewIdWithGenerator(self, object=None, gid=None):
""" """
......
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