From fd77f347c5ec3eb64c736c67d4954bb029a05d1e Mon Sep 17 00:00:00 2001 From: helmutm Date: Sun, 4 May 2008 09:05:33 +0000 Subject: [PATCH] bug fix on standard search when no text or title criteria are given git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2576 fd906abe-77d9-0310-91a1-e0d9ade77398 --- query.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/query.py b/query.py index d20523f..6ab2c95 100644 --- a/query.py +++ b/query.py @@ -151,6 +151,8 @@ class FullQuery(BaseQuery): r2 = cat.apply(criteria) #r2 = set(cat.searchResults(**criteria)) else: r2 = IFBucket() #r2 = set() + if not r1 and not r2: + r1 = cat.apply(criteria) # search only for type x, uids = weightedUnion(r1, r2) #result = r1.union(r2) for r, score in uids.items(): obj = intids.getObject(r)