From 1ecfc0612e11e3ada6511213f62d2781381846f2 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Wed, 13 Aug 2008 15:18:33 +0000 Subject: [PATCH] Add a warning about ambiguous code (loop must only be executed once for code to work). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22984 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/SQLCatalog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index 110b7861d4..9f1d1dfa3b 100644 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -1833,6 +1833,7 @@ class Catalog(Folder, if hasattr(current_query, 'order_by'): query_group_by_list = current_query.order_by else: if isinstance(value, dict): + # XXX: If dictionary has more that one key, subsequent Query() will raise. for value_key in value.keys(): if value_key == 'query': new_query_dict[key] = value['query'] -- 2.30.9